diff options
author | Erich Eckner <git@eckner.net> | 2020-07-15 14:40:58 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2020-07-15 14:40:58 +0200 |
commit | 4819d67d0a59b290edddff02d4f7d1ce2a703b7c (patch) | |
tree | 69b965c9c31fb1f705d0530e2f19ab99d8523925 | |
parent | d1f6ca5a6ac1756fa566412b32a383bcf82d5b36 (diff) | |
download | arch-mirror-4819d67d0a59b290edddff02d4f7d1ce2a703b7c.tar.xz |
arch-mirror: remove .~tmp~ after successful syncs, too
-rwxr-xr-x | arch-mirror | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch-mirror b/arch-mirror index eeae26c..751aba8 100755 --- a/arch-mirror +++ b/arch-mirror @@ -258,6 +258,10 @@ remove_unindexed_packages() { | uniq -u \ | xargs -r rm done + find "$1" \ + -type d \ + -name '.~tmp~' \ + -exec rm -rf --one-file-system {} + } if [ $# -eq 2 ] && [ "$1" = 'mirror' ]; then |