summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakob Borg <jakob@nym.se>2014-03-24 07:37:26 +0100
committerJakob Borg <jakob@nym.se>2014-03-24 07:37:26 +0100
commitfb4a2c9b5a879bc8de135b07208d02bc7af26a19 (patch)
treeb48041665dfc9a464302ca6b0d2f05aa8eaab97c
parentff18a2c3e201e5299e2a23048125f0e9556770b7 (diff)
Don't use 'which' to check for godep
-rwxr-xr-xbuild.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 495581f37e..09ef2aa455 100755
--- a/build.sh
+++ b/build.sh
@@ -6,7 +6,7 @@ distFiles=(README.md LICENSE) # apart from the binary itself
version=$(git describe --always)
build() {
- if which -s godep ; then
+ if command -v godep >/dev/null ; then
godep=godep
else
echo "Warning: no godep, using \"go get\" instead."