fix: Syntax for arithmetic operations

Removed redundant assignment of RAM_SIZE variable.
This commit is contained in:
Kroese 2025-09-22 20:24:05 +02:00 committed by GitHub
parent c93aa50c2a
commit bd2fdf17a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -101,8 +101,6 @@ if [[ "${RAM_SIZE,,}" == "max" ]]; then
RAM_WANTED=$(( RAM_WANTED / 1073741825 ))
RAM_SIZE="${RAM_WANTED}G"
fi
RAM_SIZE="${RAM_WANTED}G"
fi
if [ -z "${RAM_SIZE//[0-9. ]}" ]; then
[ "${RAM_SIZE%%.*}" -lt "130" ] && RAM_SIZE="${RAM_SIZE}G" || RAM_SIZE="${RAM_SIZE}M"