Skip to content

Commit

Permalink
Merge pull request #602 from nicoandmee/fix/zip-recursive
Browse files Browse the repository at this point in the history
feat: support custom output path in notify flow
  • Loading branch information
six2dez committed Oct 18, 2022
2 parents f163215 + 483bc99 commit 233ebeb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions reconftw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1918,9 +1918,10 @@ function zipSnedOutputFolder {
zip_name="$zip_name"_"$domain.zip"
(cd $dir && zip -r "../$zip_name" .)

if [ -s "$SCRIPTPATH/$zip_name" ]; then
sendToNotify "$SCRIPTPATH/$zip_name"
rm -f "$SCRIPTPATH/$zip_name"
echo "Sending zip file "${dir_output}/${zip_name}""
if [ -s "$dir_output/$zip_name" ]; then
sendToNotify "$dir_output/$zip_name"
rm -f "$dir_output/$zip_name"
else
notification "No Zip file to send" warn
fi
Expand Down

0 comments on commit 233ebeb

Please sign in to comment.