From 7707c61e8348bdbdefacafa4ab8b0e17e427f45c Mon Sep 17 00:00:00 2001 From: Brian Stinson Date: Apr 16 2019 18:10:19 +0000 Subject: A WHICH! BURN IT --- 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;