nixos/nixos-install: Unset system

The system variable is used from the (possibly polluted) shell
environment.
This causes nixos-install to fail in a nix-shell because the system
shell variable is automatically set to the current system (e.g.
x86_64-linux).
This commit is contained in:
Janne Heß 2018-10-14 20:12:08 +02:00
parent 4207f01f27
commit 7748c3da1b

View File

@ -13,6 +13,7 @@ extraBuildFlags=()
mountPoint=/mnt
channelPath=
system=
while [ "$#" -gt 0 ]; do
i="$1"; shift 1