OpenBricks / openbricks

Embedded Linux Framework
http://www.geexbox.org/
GNU General Public License v2.0
82 stars 42 forks source link

script/clean incorrect return statement #5

Closed markc closed 13 years ago

markc commented 13 years ago

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
davide125 commented 13 years ago

Thanks, this was fixed in r11252.

Davide