diff --git a/gitwatch.sh b/gitwatch.sh index e0c14e3..7f13469 100755 --- a/gitwatch.sh +++ b/gitwatch.sh @@ -120,7 +120,7 @@ cleanup () { # Tests for the availability of a command is_command () { - which "$1" &>/dev/null + hash "$1" 2>/dev/null } ###############################################################################