Permalink
Browse files

Avoid which in favor of command -v.

  • Loading branch information...
1 parent 4e706f3 commit 5112a08a25eec109b76c9631b66bc79cbe9c44d8 @nvie committed Jun 1, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 activate.sh
View
@@ -51,9 +51,9 @@ autoenv_hashline()
typeset envfile hash
typeset hasher
envfile=$1
- if which -s shasum >/dev/null; then
+ if command -v shasum >/dev/null; then
hasher="shasum"
- elif which -s sha1sum >/dev/null; then
+ elif command -v sha1sum >/dev/null; then
hasher="sha1sum"
else
echo "Could not find a suitable hasher. Tried 'sha1sum' and 'shasum'." >&2

0 comments on commit 5112a08

Please sign in to comment.