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}" \
|
"${output_file}" \
|
||||||
"${SSH_KEYGEN_FOLDER}" \
|
"${SSH_KEYGEN_FOLDER}" \
|
||||||
-x\*.gitignore;
|
-x\*.gitignore;
|
||||||
|
echo "Download: ${ROOT_FOLDER}${output_zip_folder}${output_zip}";
|
||||||
else
|
else
|
||||||
echo "- Skip ZIP file creation, no pem files";
|
echo "- Skip ZIP file creation, no pem files";
|
||||||
fi;
|
fi;
|
||||||
@@ -445,8 +446,8 @@ else
|
|||||||
echo "${output_file} \\"
|
echo "${output_file} \\"
|
||||||
echo "${SSH_KEYGEN_FOLDER} \\"
|
echo "${SSH_KEYGEN_FOLDER} \\"
|
||||||
echo "-x\*.gitignore;"
|
echo "-x\*.gitignore;"
|
||||||
|
echo "Download: ${ROOT_FOLDER}${output_zip_folder}${output_zip}";
|
||||||
fi;
|
fi;
|
||||||
echo "Download: ${ROOT_FOLDER}${output_zip_folder}${output_zip}";
|
|
||||||
# cleam up user log file and ssh keys
|
# cleam up user log file and ssh keys
|
||||||
if [ ${TEST} -eq 0 ]; then
|
if [ ${TEST} -eq 0 ]; then
|
||||||
if [ "${has_pem_files}" -eq 1 ]; then
|
if [ "${has_pem_files}" -eq 1 ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user