summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@parabola.nu>2018-10-03 22:14:58 -0400
committerLuke Shumaker <lukeshu@parabola.nu>2018-10-07 19:28:49 -0400
commitd146f2433c1dc05043b0e226534f9e1dd479f1ef (patch)
tree103ee7c84c43847591b0128d27abca0f5cb4c6dd
parent9b9837c6271f3a559d018d1cf6dab3f10b3ad468 (diff)
db-update: Clean up empty directories in $STAGING
-rwxr-xr-xdb-update2
1 files changed, 2 insertions, 0 deletions
diff --git a/db-update b/db-update
index e70b94b..bd1e4e4 100755
--- a/db-update
+++ b/db-update
@@ -117,3 +117,5 @@ for repo in "${repos[@]}"; do
repo_unlock "${repo}" "${pkgarch}"
done
done
+
+find "$STAGING" -depth -mindepth 1 -type d -empty -exec rmdir -- {} \;