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