From b01e80f8830e672427a9beea8355867d154ca871 Mon Sep 17 00:00:00 2001 From: Zach Pfeffer Date: Fri, 22 Feb 2013 13:17:51 -0600 Subject: mountmmc: return on error, don't exit Calling exit closes the terminal. This is annoying Signed-off-by: Zach Pfeffer --- tools.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3