From 6daad9b3c564ada1900d7be4bf8b3888de1ec197 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 7 Feb 2018 18:22:05 +0100 Subject: [PATCH] nixos-install: Fix --closure --- nixos/modules/installer/tools/nixos-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/installer/tools/nixos-install.sh b/nixos/modules/installer/tools/nixos-install.sh index 222211df2789..4f1b234b0e0f 100644 --- a/nixos/modules/installer/tools/nixos-install.sh +++ b/nixos/modules/installer/tools/nixos-install.sh @@ -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