diff --git a/get_sources.sh b/get_sources.sh
index 36d7114..577ac1d 100755
--- a/get_sources.sh
+++ b/get_sources.sh
@@ -194,7 +194,7 @@ while read -r fsha fname ; do
         echo 'Failure: Hash type unknown.' >&2
         exit 1;
       else
-        which ${hashType} >/dev/null 2>&1
+        command -v "${hashType}" >/dev/null 2>&1
         if [[ $? -ne 0 ]]; then
           echo "Failure: You need ${hashType} in PATH." >&2
           exit 1;