From 090d6f9cec8cc8c95910068d84dee694de80a0b9 Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Wed, 4 Sep 2024 13:44:47 +0900 Subject: [PATCH] Download zip file message only if there is a file to download --- bin/create_user.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/create_user.sh b/bin/create_user.sh index 58c4558..7062403 100755 --- a/bin/create_user.sh +++ b/bin/create_user.sh @@ -435,6 +435,7 @@ if [ ${TEST} -eq 0 ]; then "${output_file}" \ "${SSH_KEYGEN_FOLDER}" \ -x\*.gitignore; + echo "Download: ${ROOT_FOLDER}${output_zip_folder}${output_zip}"; else echo "- Skip ZIP file creation, no pem files"; fi; @@ -445,8 +446,8 @@ else echo "${output_file} \\" echo "${SSH_KEYGEN_FOLDER} \\" echo "-x\*.gitignore;" + echo "Download: ${ROOT_FOLDER}${output_zip_folder}${output_zip}"; fi; -echo "Download: ${ROOT_FOLDER}${output_zip_folder}${output_zip}"; # cleam up user log file and ssh keys if [ ${TEST} -eq 0 ]; then if [ "${has_pem_files}" -eq 1 ]; then