From 18707efe0af154d9f98ee874a574ed1143e7bcc1 Mon Sep 17 00:00:00 2001 From: lrob Date: Fri, 19 Feb 2016 08:41:08 +0100 Subject: [PATCH] proper check for fastdl --- functions/command_fastdl.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/command_fastdl.sh b/functions/command_fastdl.sh index 425a9e7f7..f313c04d9 100644 --- a/functions/command_fastdl.sh +++ b/functions/command_fastdl.sh @@ -70,7 +70,7 @@ fi if [ ! -d "${fastdldir}" ]; then # No folder, won't ask for removing old ones newfastdl=1 - fn_printdots "Creating FastDL fastdl directory" + fn_printdots "Creating fastdl directory" sleep 1 mkdir "${fastdldir}" fn_printok "Created fastdl directory" @@ -90,7 +90,7 @@ fn_scriptlog "Configuration" sleep 2 echo -en "\n" # Prompt for clearing old files if folder was already here -if [ -z "${newfastdl}" ] && [ "${newfastdl}" == "0" ]; then +if [ -d "${newfastdl}" ] && [ "${newfastdl}" == "0" ]; then fn_printdots while true; do read -e -i "y" -p "Clear old FastDL files? [Y/n]" yn