Skip to content

Commit c3e5b0f

Browse files
committed
Exit compilation when updating feeds fails to avoid compiling incomplete firmware
1 parent 3bff76c commit c3e5b0f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@ EOF
7373

7474
# Execute the build commands
7575
make package/symlinks
76+
if [ $? -ne 0 ]; then
77+
echo "Error: Package feeds update failed, please try again."
78+
exit 1
79+
fi
80+
7681
make defconfig
7782
make -j8 V=sc
7883
}

0 commit comments

Comments
 (0)