From 85e0b8c8372db8330f3cea3387791aecac860255 Mon Sep 17 00:00:00 2001 From: Kron4ek Date: Fri, 28 May 2021 01:16:50 +0500 Subject: [PATCH] Check for wget and gzip --- create-arch-bootstrap.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/create-arch-bootstrap.sh b/create-arch-bootstrap.sh index 8a71604..d79a586 100755 --- a/create-arch-bootstrap.sh +++ b/create-arch-bootstrap.sh @@ -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 () {