From fb4a2c9b5a879bc8de135b07208d02bc7af26a19 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Mon, 24 Mar 2014 07:37:26 +0100 Subject: [PATCH] Don't use 'which' to check for godep --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 495581f37..09ef2aa45 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."