Download zip file message only if there is a file to download
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user