3
0
Fork 0
forked from mirrors/nixpkgs

nixos-install: Fix --closure

This commit is contained in:
Eelco Dolstra 2018-02-07 18:22:05 +01:00
parent da702a4034
commit 6daad9b3c5
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -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