diff options
| author | Matt Corallo <[email protected]> | 2016-05-21 01:44:29 -0700 |
|---|---|---|
| committer | Peter Todd <[email protected]> | 2016-05-21 11:26:10 +0200 |
| commit | 9523e8adafd24f1c9358c437b857f0f2f25eeb47 (patch) | |
| tree | de63da191c49eb0f94344cefe13fe58ce48bd98b | |
| parent | Make verify-commits POSIX-compliant (diff) | |
| download | discoin-9523e8adafd24f1c9358c437b857f0f2f25eeb47.tar.xz discoin-9523e8adafd24f1c9358c437b857f0f2f25eeb47.zip | |
Make verify-commits path-independent
| -rwxr-xr-x | contrib/verify-commits/verify-commits.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/verify-commits/verify-commits.sh b/contrib/verify-commits/verify-commits.sh index c9d2b96d8..a859e6785 100755 --- a/contrib/verify-commits/verify-commits.sh +++ b/contrib/verify-commits/verify-commits.sh @@ -3,6 +3,7 @@ # shell anyone uses today supports it, so its probably fine DIR=$(dirname "$0") +[ "/${DIR#/}" != "$DIR" ] && DIR=$(dirname "$(pwd)/$0") echo "Please verify all commits in the following list are not evil:" git log "$DIR" |