Add curl check
This commit is contained in:
parent
2859a8daa5
commit
3df3362f28
5
copy.sh
5
copy.sh
|
@ -11,6 +11,11 @@ if ! command -v wget &> /dev/null; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if ! command -v curl &> /dev/null; then
|
||||||
|
echo "curl must be installed!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
mkdir -p "$HOME/.tmp" || exit 1
|
mkdir -p "$HOME/.tmp" || exit 1
|
||||||
|
|
||||||
if command -v sudo &> /dev/null && ! command -v sofi &> /dev/null && ! test -f /usr/bin/sofi; then
|
if command -v sudo &> /dev/null && ! command -v sofi &> /dev/null && ! test -f /usr/bin/sofi; then
|
||||||
|
|
Loading…
Reference in New Issue