mirror of
https://git.centos.org/centos-git-common.git
synced 2025-02-23 16:22:56 +00:00
A WHICH! BURN IT
This commit is contained in:
parent
9857597bf6
commit
7707c61e83
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,7 @@ while read -r fsha fname ; do
|
||||||
echo 'Failure: Hash type unknown.' >&2
|
echo 'Failure: Hash type unknown.' >&2
|
||||||
exit 1;
|
exit 1;
|
||||||
else
|
else
|
||||||
which ${hashType} >/dev/null 2>&1
|
command -v "${hashType}" >/dev/null 2>&1
|
||||||
if [[ $? -ne 0 ]]; then
|
if [[ $? -ne 0 ]]; then
|
||||||
echo "Failure: You need ${hashType} in PATH." >&2
|
echo "Failure: You need ${hashType} in PATH." >&2
|
||||||
exit 1;
|
exit 1;
|
||||||
|
|
Loading…
Add table
Reference in a new issue