Check for wget and gzip

This commit is contained in:
Kron4ek 2021-05-28 01:16:50 +05:00 committed by GitHub
parent 844f53e0cc
commit 85e0b8c837
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -9,6 +9,16 @@ if [ $EUID != 0 ]; then
exit 1
fi
if ! command -v wget 1>/dev/null; then
echo "wget is required!"
exit 1
fi
if ! command -v gzip 1>/dev/null; then
echo "gzip is required!"
exit 1
fi
script_dir="$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")"
mount_chroot () {