Use if rather than test before rebooting (#35)

* whitespace

* Use if rather than test before rebooting

When the -z returned false, the script would return its error code, 1,
resulting in a failure.
This commit is contained in:
asymmetric 2019-05-05 20:23:09 +02:00 committed by Eric Litak
parent 4f31db455e
commit b95ff459a8

View file

@ -258,4 +258,7 @@ makeConf
makeSwap # smallest (512MB) droplet needs extra memory! makeSwap # smallest (512MB) droplet needs extra memory!
infect infect
removeSwap removeSwap
[[ -z "$NO_REBOOT" ]] && reboot
if [[ -z "$NO_REBOOT" ]]; then
reboot
fi