diff options
author | Jakob Borg <jakob@nym.se> | 2014-03-24 07:37:26 +0100 |
---|---|---|
committer | Jakob Borg <jakob@nym.se> | 2014-03-24 07:37:26 +0100 |
commit | fb4a2c9b5a879bc8de135b07208d02bc7af26a19 (patch) | |
tree | b48041665dfc9a464302ca6b0d2f05aa8eaab97c | |
parent | ff18a2c3e201e5299e2a23048125f0e9556770b7 (diff) |
Don't use 'which' to check for godep
-rwxr-xr-x | build.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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." |