Unverified Commit 2e201747 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

fix: Syntax for arithmetic operations (#1020)

parent 0a0cd98d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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