diff --git a/gravity.sh b/gravity.sh index c7505b9..1f5e3fb 100755 --- a/gravity.sh +++ b/gravity.sh @@ -60,7 +60,7 @@ function createSwapFile() } -if [[ -z "$noSwap" ]]; then +if [[ -n "$noSwap" ]]; then # if $noSwap is set, don't do anything : elif [[ -f /etc/dphys-swapfile ]];then