From a488c2a7df7b6bec2feeb515e2bd0c7462310fc8 Mon Sep 17 00:00:00 2001 From: Phil Clifford Date: Mon, 29 Apr 2024 14:20:20 +0100 Subject: [PATCH] fix: relocatable chunkcheck --- quickget | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quickget b/quickget index e287502..7a0baa9 100755 --- a/quickget +++ b/quickget @@ -2015,8 +2015,8 @@ function get_macos() { CWD="$(dirname "${0}")" if [ -x "${CWD}/chunkcheck" ]; then CHUNKCHECK="${CWD}/chunkcheck" - elif [ -x /usr/bin/chunkcheck ]; then - CHUNKCHECK="/usr/bin/chunkcheck" + elif [ -x "$(command -v chunkcheck)" ]; then + CHUNKCHECK="$(command -v chunkcheck)" else web_get "https://raw.githubusercontent.com/quickemu-project/quickemu/master/chunkcheck" "${HOME}/.quickemu" CHUNKCHECK="${HOME}/.quickemu/chunkcheck"