From 91525dcbbf4cb235d1763b7573aadc25d1a7fd37 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Fri, 3 Mar 2017 17:37:26 +0000 Subject: [PATCH] added if --- lgsm/functions/command_fastdl.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lgsm/functions/command_fastdl.sh b/lgsm/functions/command_fastdl.sh index 6343e5ab7..e2c787ce1 100644 --- a/lgsm/functions/command_fastdl.sh +++ b/lgsm/functions/command_fastdl.sh @@ -366,7 +366,9 @@ fn_fastdl_source(){ if [ -z "${copyflag}" ]; then echo "about to compress ${totalfiles} files, total size $(fn_human_readable_file_size ${filesizetotal} 0) " - rm "${tmpdir}/fastdl_files_to_compress.txt" + if [ -f "${tmpdir}/fastdl_files_to_compress.txt" ]; then + rm "${tmpdir}/fastdl_files_to_compress.txt" + fi if fn_prompt_yn "Continue?" Y; then copyflag=1 fn_fastdl_source