[Toaster] [PATCH 06/20] toaster: don't use exit in shell script

Ed Bartosh ed.bartosh at linux.intel.com
Sun Oct 11 14:15:43 PDT 2015


Replaced exit -> return as using exit in sourced script
causes exit of running shell and shutting down terminal window.

Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
---
 bin/toaster | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/toaster b/bin/toaster
index 2fc4e750..badb2c1 100755
--- a/bin/toaster
+++ b/bin/toaster
@@ -175,7 +175,7 @@ if [ "$TOASTER_CONF" = "" ]; then
 fi
 if [ ! -f $TOASTER_CONF ]; then
     echo "$TOASTER_CONF configuration file not found, exiting..."
-    exit 1;
+    return 1;
 fi
 # this defines the dir toaster will use for
 # 1) clones of layers (in _toaster_clones )
-- 
2.1.4



More information about the toaster mailing list