Download zip file message only if there is a file to download

This commit is contained in:
Clemens Schwaighofer
2024-09-04 13:44:47 +09:00
parent 5659cc010f
commit 090d6f9cec

View File

@@ -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