Parcourir la source

proper check for fastdl

lrob il y a 10 ans
Parent
commit
18707efe0a
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      functions/command_fastdl.sh

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