From ea8f459977e69bcd1723761de8ed1af7f724030c Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Wed, 27 Oct 2021 12:18:10 +0100 Subject: [PATCH] Make shellcheck happy --- quickemu | 2 +- quickget | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/quickemu b/quickemu index 9b1e697..392a797 100755 --- a/quickemu +++ b/quickemu @@ -311,7 +311,7 @@ function vm_boot() { fi echo ", ${RAM_VM} RAM" - if [ ${RAM_VM//G/} -lt 4 ]; then + if [ "${RAM_VM//G/}" -lt 4 ]; then if [ "${guest_os}" == "macos" ] || [ "${guest_os}" == "windows" ]; then echo "ERROR! You have insufficient RAM to run ${guest_os} in a VM" exit 1 diff --git a/quickget b/quickget index 5928782..59d4989 100755 --- a/quickget +++ b/quickget @@ -770,7 +770,7 @@ function get_macos() { esac # Use a bundled macrecovery if possible - CWD="$(dirname ${0})" + CWD="$(dirname "${0}")" if [ -x "${CWD}/macrecovery" ]; then MACRECOVERY="${CWD}/macrecovery" elif [ -x /usr/bin/macrecovery ]; then