aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZach Pfeffer <zach.pfeffer@linaro.org>2013-02-22 13:17:51 -0600
committerZach Pfeffer <zach.pfeffer@linaro.org>2013-02-22 13:17:51 -0600
commitb01e80f8830e672427a9beea8355867d154ca871 (patch)
treeccc466c12df342455b0c5f9ab000e14394bbd8e3
parent53c23255f7e9ea428f363c9774e011c76e1106f5 (diff)
downloadat-b01e80f8830e672427a9beea8355867d154ca871.tar.gz
mountmmc: return on error, don't exit
Calling exit closes the terminal. This is annoying Signed-off-by: Zach Pfeffer <zach.pfeffer@linaro.org>
-rw-r--r--tools.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools.sh b/tools.sh
index 38c62ea..5bac71f 100644
--- a/tools.sh
+++ b/tools.sh
@@ -334,7 +334,7 @@ if you call this like ./mountmmc.sh 1 2 5 you will extract partitions 1, 2 and 5
function mountmmc() {
if [ -d mmc ]; then
echo mmc dir exists, exiting
- exit
+ return
fi
mkdir mmc