Browse Source

exit/return fixes

pull/709/head
lrob 9 years ago
parent
commit
4695b10cfd
  1. 5
      functions/command_fastdl.sh

5
functions/command_fastdl.sh

@ -31,7 +31,7 @@ while true; do
* ) echo "Please answer yes or no.";; * ) echo "Please answer yes or no.";;
esac esac
done done
# Create FastDL folder if it doesn't exit # Create FastDL folder if it doesn't exist
if [ ! -d "${webdir}" ]; then if [ ! -d "${webdir}" ]; then
echo "Creating www directory" echo "Creating www directory"
mkdir -v "${webdir}" mkdir -v "${webdir}"
@ -166,7 +166,7 @@ echo "It may take a while..."
read -p "Continue? [y/N]" yn read -p "Continue? [y/N]" yn
case $yn in case $yn in
[Yy]* ) break;; [Yy]* ) break;;
[Nn]* ) exit;; [Nn]* ) return 0;;
* ) echo "Please answer yes or no.";; * ) echo "Please answer yes or no.";;
esac esac
done done
@ -218,7 +218,6 @@ if [ "$bzip2installed" == "0" ]; then
echo "By the way, you'd better install bzip2 an re-run this command" echo "By the way, you'd better install bzip2 an re-run this command"
fi fi
echo "----------------------------------" echo "----------------------------------"
exit
} }
# Game checking # Game checking

Loading…
Cancel
Save