Unverified Commit fb047f1e authored by wukongdaily's avatar wukongdaily Committed by GitHub
Browse files

Update build.sh

parent 7954e62b
#!/bin/bash
# 获取 PROFILE 环境变量
echo "Building for profile: $PROFILE"
# 获取 rootfs_partsize 环境变量
echo "Building for rootfs_partsize: $rootfs_partsize"
# 输出调试信息
......@@ -29,7 +32,7 @@ PACKAGES="$PACKAGES luci-i18n-dockerman-zh-cn"
echo "$(date '+%Y-%m-%d %H:%M:%S') - Building image with the following packages:"
echo "$PACKAGES"
make image PROFILE=$PROFILE PACKAGES="$PACKAGES" FILES="/home/build/immortalwrt/files" ROOTFS_PARTSIZE="2048"
make image PROFILE=$PROFILE PACKAGES="$PACKAGES" FILES="/home/build/immortalwrt/files" ROOTFS_PARTSIZE=$rootfs_partsize
if [ $? -ne 0 ]; then
echo "$(date '+%Y-%m-%d %H:%M:%S') - Error: Build failed!"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment