nixos/installer: Use -n
instead of ! -z
See <https://github.com/koalaman/shellcheck/wiki/SC2236>.
This commit is contained in:
parent
adb8f5c858
commit
c9a7385997
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue