nixos/installer: Use -n instead of ! -z

See <https://github.com/koalaman/shellcheck/wiki/SC2236>.
This commit is contained in:
Victor Engmark 2021-11-26 18:55:53 +13:00
parent adb8f5c858
commit c9a7385997

View file

@ -30,7 +30,7 @@ while [ $# -gt 0 ]; do
nixBuildArgs+=("--option" "$1" "$2"); shift
;;
*)
if [ ! -z "$networkExpr" ]; then
if [ -n "$networkExpr" ]; then
echo "Network expression already set!"
showUsage
exit 1