mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2026-02-21 18:37:23 +08:00
fix: Syntax for arithmetic operations
Removed redundant assignment of RAM_SIZE variable.
This commit is contained in:
parent
c93aa50c2a
commit
bd2fdf17a5
@ -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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user