Fix nix installer

This commit is contained in:
Andrew R. M 2025-05-23 14:05:42 +00:00 committed by anmiller
parent da7a244f95
commit b66b03bc78

View File

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