mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-08 11:35:37 +03: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
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ while [ $# -gt 0 ]; do
|
||||||
nixBuildArgs+=("--option" "$1" "$2"); shift
|
nixBuildArgs+=("--option" "$1" "$2"); shift
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
if [ ! -z "$networkExpr" ]; then
|
if [ -n "$networkExpr" ]; then
|
||||||
echo "Network expression already set!"
|
echo "Network expression already set!"
|
||||||
showUsage
|
showUsage
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue