From dfad528cfbd765e62c35097003362b5864e9fe76 Mon Sep 17 00:00:00 2001 From: lrob Date: Fri, 19 Feb 2016 07:06:48 +0100 Subject: [PATCH] Don't try to empty an empty folder please --- 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 bf377cb68..f9d6332e7 100644 --- a/functions/command_fastdl.sh +++ b/functions/command_fastdl.sh @@ -77,8 +77,8 @@ if [ ! -d "${fastdldir}" ]; then fn_scriptlog "FastDL created fastdl directory" sleep 1 echo -en "\n" -else - # Used to prompt for removing old files +# Used to prompt for removing old files if folder is not empty +elif [ "$(ls -A ${fastdldir)" ]; then newfastdl=0 fi }