mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-23 12:34:15 +00:00
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 New Issue
Block a user