aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Corallo <[email protected]>2016-05-21 01:44:29 -0700
committerPeter Todd <[email protected]>2016-05-21 11:26:10 +0200
commit9523e8adafd24f1c9358c437b857f0f2f25eeb47 (patch)
treede63da191c49eb0f94344cefe13fe58ce48bd98b
parentMake verify-commits POSIX-compliant (diff)
downloaddiscoin-9523e8adafd24f1c9358c437b857f0f2f25eeb47.tar.xz
discoin-9523e8adafd24f1c9358c437b857f0f2f25eeb47.zip
Make verify-commits path-independent
-rwxr-xr-xcontrib/verify-commits/verify-commits.sh1
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"