Skip to content

Commit

Permalink
fix: assign QEMU_IMG
Browse files Browse the repository at this point in the history
Only used for macOS
closes quickemu-project#1229
  • Loading branch information
philclifford committed May 15, 2024
1 parent 4547064 commit 19191e5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions quickget
Original file line number Diff line number Diff line change
Expand Up @@ -3393,6 +3393,13 @@ if [ ! -e "${CURL}" ]; then
fi
CURL_VERSION=$("${CURL}" --version | head -1 | cut -d' ' -f2)

# Only currently used for MacOS
QEMU_IMG=$(command -v qemu-img)
if [ ! -e "${QEMU_IMG}" ]; then
echo "ERROR! qemu-img not found. Please install qemu-img"
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)
Expand Down

0 comments on commit 19191e5

Please sign in to comment.