diff options
author | Ingo Reitz <ninelore@protonmail.com> | 2024-04-18 16:28:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-18 10:28:21 -0400 |
commit | 1889baff16c08ddf2382d95ca18caa37001d5971 (patch) | |
tree | 97c759f97f01091901448259e7d890c23fd9f13b | |
parent | 9921aa8be6a40ffc483f06829b0ae3174764b50c (diff) |
Do not run if NixOS is detected
-rwxr-xr-x | install.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/install.sh b/install.sh index ff79949..97c7e98 100755 --- a/install.sh +++ b/install.sh @@ -20,6 +20,10 @@ elif [ -f /usr/bin/dnf ]; then distro="fedora" elif [ -f /sbin/apk ]; then distro="alpine" +elif grep 'ID=nixos' /etc/os-release; then + echo "NixOS is not supported by this script." + echo "Bailing out..." + exit 1 fi if [ -f /usr/bin/sudo ]; then |