summaryrefslogtreecommitdiff
path: root/pre-commit.d/20store-empty-directory
diff options
context:
space:
mode:
Diffstat (limited to 'pre-commit.d/20store-empty-directory')
-rwxr-xr-xpre-commit.d/20store-empty-directory4
1 files changed, 2 insertions, 2 deletions
diff --git a/pre-commit.d/20store-empty-directory b/pre-commit.d/20store-empty-directory
index a52a383..22fde89 100755
--- a/pre-commit.d/20store-empty-directory
+++ b/pre-commit.d/20store-empty-directory
@@ -11,8 +11,8 @@ if [ "$VCS" = git ] || [ "$VCS" = hg ]; then
if [ -e .etckeeper ]; then
egrep -v '^mkdir ' .etckeeper > .etckeeper.new || true
fi
- find -type d -empty | grep -v /.git/ | grep -v /.hg/ | sort |
- sed -e "s/^/mkdir -p '/" -e "s/\$/'/" >> .etckeeper.new
+ find -type d -empty | grep -v /.git/ | grep -v /.hg/ | grep -v /.bzr/ |
+ sort | sed -e "s/^/mkdir -p '/" -e "s/\$/'/" >> .etckeeper.new
if [ ! -e .etckeeper ] || ! cmp -s .etckeeper .etckeeper.new ; then
mv -f .etckeeper.new .etckeeper