Browse Source

Cleanup exit a bit, from Ronald Wahl

Eric Andersen 23 years ago
parent
commit
e037958aa6
1 changed files with 3 additions and 1 deletions
  1. 3 1
      extra/scripts/get-needed-libgcc-objects.sh

+ 3 - 1
extra/scripts/get-needed-libgcc-objects.sh

@@ -31,7 +31,9 @@ if $NM --undefined-only libc.ldr | grep -v "^main$" | grep -v "^_GLOBAL_OFFSET_T
 	    EXIT_WITH_ERROR=1
 	fi
     done
-    exit $EXIT_WITH_ERROR
+    if [ $EXIT_WITH_ERROR != 0 ]; then
+	exit $EXIT_WITH_ERROR
+    fi
 else
     echo No missing symbols found.
     exit 0