OpenBricks/openbricks

script/clean incorrect return statement

markc opened this issue · 1 comments

A trivial contribution, nonetheless my first patch... scripts/clean: line 61: return: can only `return' from a function or sourced script

--- scripts/clean.orig  2010-12-20 02:52:22.350701533 -0800
+++ scripts/clean       2010-12-20 02:52:46.020701974 -0800
@@ -58,7 +58,7 @@
 if [ -z "$1" ]; then
   if [ "$QUICK" = true ]; then
     rm -rf $BUILD $BINROOT
-    return
+    exit 0
   fi
   for i in $PACKAGES/*; do clean ${i#$PACKAGES/}; done
   $SCRIPTS/unpackagedev opkg-host

Thanks, this was fixed in r11252.

Davide