summaryrefslogtreecommitdiff
path: root/etckeeper
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2007-11-05 18:43:39 -0500
committerJoey Hess <joey@kodama.kitenet.net>2007-11-05 18:43:39 -0500
commit6300374281888b2f738f719e057b5e74db9706f5 (patch)
treeeed3f22257c708f5dbaa3ae49c2a8478a98ed341 /etckeeper
parentb42d7c03371d9f1dab89a8d7a3e5bb85e8774e14 (diff)
polish
Diffstat (limited to 'etckeeper')
-rwxr-xr-xetckeeper2
1 files changed, 1 insertions, 1 deletions
diff --git a/etckeeper b/etckeeper
index c05845d..0840e85 100755
--- a/etckeeper
+++ b/etckeeper
@@ -19,7 +19,7 @@ fi
if [ "$command" = post-apt ] || [ "$command" = pre-apt ]; then
cd /etc
-elif [ "$command" = pre-commit ]; then
+elif [ "$command" = pre-commit ] && [ -n "$1" ]; then
chdir "$1"
fi