command -v, curl
This commit is contained in:
parent
145a04730c
commit
f445123912
@ -1,8 +1,8 @@
|
||||
#!/bin/sh -x
|
||||
set -e
|
||||
|
||||
if ! which curl >/dev/null 2>&1; then
|
||||
printf "1n574ll curl, 5700p1d!\n"
|
||||
if ! command -v curl >/dev/null 2>&1; then
|
||||
printf "This script depends on curl.\n"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user