From 989ad37d658443d9575ec38414239b0d25a7c7d3 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Tue, 14 May 2024 23:43:58 +0100 Subject: [PATCH] fix(quickget): find qemu-img - close #1224 - close #1229 - close #1234 --- quickget | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/quickget b/quickget index 34dd01a..eedd759 100755 --- a/quickget +++ b/quickget @@ -3397,6 +3397,12 @@ if [ ! -e "${CURL}" ]; then fi CURL_VERSION=$("${CURL}" --version | head -1 | cut -d' ' -f2) +QEMU_IMG=$(command -v qemu-img) +if [ ! -x "${QEMU_IMG}" ]; then + echo "ERROR! qemu-img not found. Please make sure qemu-img is installed." + exit 1 +fi + #TODO: Deprecate `list`, `list_csv`, and `list_json` in favor of `--list`, `--list-csv`, and `--list-json` case "${1}" in --download|-download)