From 4695b10cfd116d1001a54cca89e0c8a3ed02a754 Mon Sep 17 00:00:00 2001 From: lrob Date: Fri, 19 Feb 2016 02:51:01 +0100 Subject: [PATCH] exit/return fixes --- functions/command_fastdl.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/functions/command_fastdl.sh b/functions/command_fastdl.sh index 4ba97046e..1182bdd18 100644 --- a/functions/command_fastdl.sh +++ b/functions/command_fastdl.sh @@ -31,7 +31,7 @@ while true; do * ) echo "Please answer yes or no.";; esac done -# Create FastDL folder if it doesn't exit +# Create FastDL folder if it doesn't exist if [ ! -d "${webdir}" ]; then echo "Creating www directory" mkdir -v "${webdir}" @@ -166,7 +166,7 @@ echo "It may take a while..." read -p "Continue? [y/N]" yn case $yn in [Yy]* ) break;; - [Nn]* ) exit;; + [Nn]* ) return 0;; * ) echo "Please answer yes or no.";; esac done @@ -218,7 +218,6 @@ if [ "$bzip2installed" == "0" ]; then echo "By the way, you'd better install bzip2 an re-run this command" fi echo "----------------------------------" -exit } # Game checking