mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 07:01:54 +00:00
nixos-install: Fix --closure
This commit is contained in:
parent
da702a4034
commit
6daad9b3c5
@ -73,7 +73,7 @@ if [[ ${NIXOS_CONFIG:0:1} != / ]]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ ! -e "$NIXOS_CONFIG" ] && [ -z "$closure" ]; then
|
||||
if [[ ! -e $NIXOS_CONFIG && -z $system ]]; then
|
||||
echo "configuration file $NIXOS_CONFIG doesn't exist"
|
||||
exit 1
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user