diff --git a/pre-commit b/pre-commit index a7852af..7ca583b 100755 --- a/pre-commit +++ b/pre-commit @@ -3,7 +3,7 @@ root="$(git rev-parse --show-toplevel)" [ -d "$root" ] || exit 1 -owndir="$(cd "$(dirname "$0")"; pwd -P)" +owndir="$(dirname "$(readlink -f "$0")")" OS_NAME=$(uname)