Skip to content

Commit

Permalink
export compress should delete empty dirs
Browse files Browse the repository at this point in the history
  • Loading branch information
pablomatiasgomez committed Jun 13, 2024
1 parent d55e45b commit 3bf6b2e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/exports-compress.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,8 @@ tar -czf ./exports/exports-"$datePrefix".tar --files-from ./export-files.manifes
echo "Deleting files"
cat ./export-files.manifest | xargs rm

echo "Deleting empty dirs"
find ./exports/ -empty -type d -delete

echo "Deleting manifest file"
rm ./export-files.manifest

0 comments on commit 3bf6b2e

Please sign in to comment.