Do not run zip command when test flag is set
This commit is contained in:
@@ -282,12 +282,21 @@ if [ ${INFO} -eq 1 ]; then
|
|||||||
exit;
|
exit;
|
||||||
fi;
|
fi;
|
||||||
# zip everything and remove data in ssh key folder, delete output file with passwords
|
# zip everything and remove data in ssh key folder, delete output file with passwords
|
||||||
|
if [ ${TEST} -eq 0 ]; then
|
||||||
zip -r \
|
zip -r \
|
||||||
"${root_folder}${output_zip_folder}${output_zip}" \
|
"${root_folder}${output_zip_folder}${output_zip}" \
|
||||||
"${input_file}" \
|
"${input_file}" \
|
||||||
"${output_file}" \
|
"${output_file}" \
|
||||||
"${ssh_keygen_folder}" \
|
"${ssh_keygen_folder}" \
|
||||||
-x\*.gitignore;
|
-x\*.gitignore;
|
||||||
|
else
|
||||||
|
echo "zip -r \\"
|
||||||
|
echo "${root_folder}${output_zip_folder}${output_zip} \\"
|
||||||
|
echo "${input_file} \\"
|
||||||
|
echo "${output_file} \\"
|
||||||
|
echo "${ssh_keygen_folder} \\"
|
||||||
|
echo "-x\*.gitignore;"
|
||||||
|
fi;
|
||||||
echo "Download: ${root_folder}${output_zip_folder}${output_zip}";
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user