From b66b03bc782351329e4c689e96b3abcb88fb7d29 Mon Sep 17 00:00:00 2001 From: "Andrew R. M" Date: Fri, 23 May 2025 14:05:42 +0000 Subject: [PATCH] Fix nix installer --- installers/install-nix.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installers/install-nix.sh b/installers/install-nix.sh index 0d00675..458cc4d 100755 --- a/installers/install-nix.sh +++ b/installers/install-nix.sh @@ -9,7 +9,7 @@ set -x # Abort installation if Nix is already installed if [ -d /nix/store ]; then exit 0 -elif ! [ -O /nix ]; then +elif [ -d /nix ] && ! [ -O /nix ]; then # If we don't own /nix use sudo to chown it. # If we can't sudo then nothing we do here will work so we just let this fail sudo chown $UID /nix