diff options
author | Joey Hess <joey@kitenet.net> | 2010-07-25 19:47:45 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-07-25 19:47:45 -0400 |
commit | 60747c8dae14a12263124193572c7eb1177e475b (patch) | |
tree | a422aa8bd97856cf0abfb250e8e2ce31fededf67 /etckeeper | |
parent | 3848d6b6c9ea4c6e9d3fa0164b9103f70d1b6789 (diff) |
Ensure that PATH contains the directory containing etckeeper, so that hook scripts that re-exec etckeeper are guaranteed to find it.
Diffstat (limited to 'etckeeper')
-rwxr-xr-x | etckeeper | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -25,6 +25,12 @@ export VCS HOME=~root export HOME +program_directory="${0%/*}" +if [ -n "$program_directory" ]; then + PATH="$PATH:$program_directory" + export PATH +fi + if [ ! -z "$GIT_COMMIT_OPTIONS" ]; then export GIT_COMMIT_OPTIONS fi |