diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2010-04-14 15:34:52 -0400 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2010-04-14 15:34:52 -0400 |
commit | 51e151ca576b15cc2df1539589ce86afc62c3032 (patch) | |
tree | c6d396aa94b842d1e920bd3c935bedaaa8191d85 /pre-commit.d | |
parent | 6a624ad72242c47964f7a5e802f2533db7460306 (diff) |
find portability fix
Diffstat (limited to 'pre-commit.d')
-rwxr-xr-x | pre-commit.d/20warn-hardlinks | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pre-commit.d/20warn-hardlinks b/pre-commit.d/20warn-hardlinks index 008e2f1..54b3887 100755 --- a/pre-commit.d/20warn-hardlinks +++ b/pre-commit.d/20warn-hardlinks @@ -2,7 +2,7 @@ set -e if [ "$VCS" = git ] || [ "$VCS" = hg ] || [ "$VCS" = bzr ] || [ "$VCS" = darcs ]; then - hardlinks=$(find -type f -not -links 1 | grep -v '/\(.git\|.hg\|.bzr\|_darcs\)/' ) || true + hardlinks=$(find . -type f -not -links 1 | grep -v '/\(.git\|.hg\|.bzr\|_darcs\)/' ) || true if [ -n "$hardlinks" ]; then echo "etckeeper warning: hardlinked files could cause problems with $VCS:" >&2 echo "$hardlinks" >&2 |