fix syntax error at "get swap size"
This commit is contained in:
parent
a64f373006
commit
a248b3721b
@ -54,7 +54,7 @@ done
|
|||||||
#get swap size
|
#get swap size
|
||||||
swapSize=$(free -m | grep "Mem" | awk '{print $2}')
|
swapSize=$(free -m | grep "Mem" | awk '{print $2}')
|
||||||
read -p "Enter extra amount of swap (empty == 512):" swapExtra
|
read -p "Enter extra amount of swap (empty == 512):" swapExtra
|
||||||
if [ -z "$swapExtra" ] && swapExtra=512
|
[[ -z "$swapExtra" ]] && swapExtra=512
|
||||||
let "swapSize += swapExtra" #add 512 mbs to swap for swap, not only hibernation
|
let "swapSize += swapExtra" #add 512 mbs to swap for swap, not only hibernation
|
||||||
swapSize=$swapSize"M"
|
swapSize=$swapSize"M"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user