components/9990-main.sh: Fix shellcheck issue SC2236
authorBenjamin Drung <benjamin.drung@profitbricks.com>
Mon, 13 Jan 2020 09:59:40 +0000 (10:59 +0100)
committerBenjamin Drung <benjamin.drung@profitbricks.com>
Mon, 13 Jan 2020 09:59:40 +0000 (10:59 +0100)
shellcheck complains about SC2236: Use -n instead of ! -z.

Signed-off-by: Benjamin Drung <benjamin.drung@profitbricks.com>
components/9990-main.sh

index 3fbe9bc..b50952f 100755 (executable)
@@ -33,7 +33,7 @@ Live ()
        # Needed here too because some things (*cough* udev *cough*)
        # changes the timeout
 
-       if [ ! -z "${NETBOOT}" ] || [ ! -z "${FETCH}" ] || [ ! -z "${HTTPFS}" ] || [ ! -z "${FTPFS}" ]
+       if [ -n "${NETBOOT}" ] || [ -n "${FETCH}" ] || [ -n "${HTTPFS}" ] || [ -n "${FTPFS}" ]
        then
                if do_netmount
                then