소스 검색

Don't try to empty an empty folder please

lrob 10 년 전
부모
커밋
dfad528cfb
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      functions/command_fastdl.sh

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