Browse Source

Make 'make' more resilient

bryan 11 months ago
parent
commit
b5d13f000e
1 changed files with 4 additions and 1 deletions
  1. 4 1
      openwrtbuilder

+ 4 - 1
openwrtbuilder

@@ -682,7 +682,10 @@ fromSource() {
     if ! execute make "${make_opts[@]}" world; then
         echo "Error: make failed, retrying using slow mode"
         execute make V=s -j1 dirclean
-        execute make V=s -j1 world
+        if ! execute make V=s -j1 world; then
+            echo "Error: slow make failed"
+            return 1
+        fi
     fi
 
     popd || return 1