From 2e2017470e3862fee4e66cd10c28bf1aeab92fbe Mon Sep 17 00:00:00 2001 From: Kroese Date: Mon, 22 Sep 2025 20:24:23 +0200 Subject: [PATCH] fix: Syntax for arithmetic operations (#1020) --- src/reset.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/reset.sh b/src/reset.sh index 6d8ddab..bef5e47 100644 --- a/src/reset.sh +++ b/src/reset.sh @@ -97,8 +97,8 @@ RAM_SIZE="${RAM_SIZE// /}" [ -z "$RAM_SIZE" ] && error "RAM_SIZE not specified!" && exit 16 if [[ "${RAM_SIZE,,}" == "max" ]]; then - RAM_WANTED=(( RAM_AVAIL - RAM_SPARE - RAM_SPARE)) - RAM_WANTED=(( RAM_WANTED / 1073741825 )) + RAM_WANTED=$(( RAM_AVAIL - RAM_SPARE - RAM_SPARE )) + RAM_WANTED=$(( RAM_WANTED / 1073741825 )) RAM_SIZE="${RAM_WANTED}G" fi