fix: Syntax for arithmetic operations (#1020)

This commit is contained in:
Kroese 2025-09-22 20:24:23 +02:00 committed by GitHub
parent 0a0cd98de3
commit 2e2017470e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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