From bd987f55d2dff1f6ad07c52a35ba20d3adb2a762 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Sat, 21 Mar 2020 10:43:00 +0000 Subject: [PATCH] Vars refactor: Replace disk_curr_size with DISK_CURR_SIZE --- quickemu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quickemu b/quickemu index 9ada4f5..a690bd8 100755 --- a/quickemu +++ b/quickemu @@ -160,8 +160,8 @@ function vm_boot() { echo " Failed to get "write" lock. Is another process using the disk?" exit 1 else - disk_curr_size=$(stat -c%s "${disk_img}") - if [ ${disk_curr_size} -le ${DISK_MIN_SIZE} ]; then + DISK_CURR_SIZE=$(stat -c%s "${disk_img}") + if [ ${DISK_CURR_SIZE} -le ${DISK_MIN_SIZE} ]; then echo " Looks unused, booting from ${iso}" if [ -z "${iso}" ]; then echo "ERROR! You haven't specified a .iso image to boot from."