mirror of
https://github.com/NixOS/nix
synced 2024-10-18 00:16:11 -04:00
Merge 3cf6a1324b
into f51974d698
This commit is contained in:
commit
c535bfdb9f
|
@ -58,6 +58,7 @@ readonly EXTRACTED_NIX_PATH="$(dirname "$0")"
|
||||||
|
|
||||||
readonly ROOT_HOME=~root
|
readonly ROOT_HOME=~root
|
||||||
|
|
||||||
|
|
||||||
if [ -t 0 ] && [ -z "${NIX_INSTALLER_YES:-}" ]; then
|
if [ -t 0 ] && [ -z "${NIX_INSTALLER_YES:-}" ]; then
|
||||||
readonly IS_HEADLESS='no'
|
readonly IS_HEADLESS='no'
|
||||||
else
|
else
|
||||||
|
@ -96,6 +97,12 @@ is_os_darwin() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if [ -d "/nix" ]; then
|
||||||
|
echo "$(tput setaf 1)Error: /nix already exists on your system.$(tput sgr0)"
|
||||||
|
echo "$(tput setaf 2)To remove it, you can use the following command: sudo rm -rf /nix$(tput sgr0)"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
contact_us() {
|
contact_us() {
|
||||||
echo "You can open an issue at"
|
echo "You can open an issue at"
|
||||||
echo "https://github.com/NixOS/nix/issues/new?labels=installer&template=installer.md"
|
echo "https://github.com/NixOS/nix/issues/new?labels=installer&template=installer.md"
|
||||||
|
|
Loading…
Reference in a new issue