Răsfoiți Sursa

exit/return fixes

lrob 10 ani în urmă
părinte
comite
4695b10cfd
1 a modificat fișierele cu 2 adăugiri și 3 ștergeri
  1. 2 3
      functions/command_fastdl.sh

+ 2 - 3
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