Don't use 'which' to check for godep

This commit is contained in:
Jakob Borg 2014-03-24 07:37:26 +01:00
parent ff18a2c3e2
commit fb4a2c9b5a

View File

@ -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."