fix(quickget): find qemu-img

- close #1224
- close #1229
- close #1234
This commit is contained in:
Martin Wimpress 2024-05-14 23:43:58 +01:00 committed by Martin Wimpress
parent 685b2ef742
commit 989ad37d65
1 changed files with 6 additions and 0 deletions

View File

@ -3397,6 +3397,12 @@ if [ ! -e "${CURL}" ]; then
fi fi
CURL_VERSION=$("${CURL}" --version | head -1 | cut -d' ' -f2) 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` #TODO: Deprecate `list`, `list_csv`, and `list_json` in favor of `--list`, `--list-csv`, and `--list-json`
case "${1}" in case "${1}" in
--download|-download) --download|-download)