Add support to Fedora systems

This commit is contained in:
2024-03-27 20:23:31 +00:00
committed by GitHub
parent 4166fa5387
commit 03388a2e22

View File

@@ -8,6 +8,8 @@ detectDistro() {
echo "Debian"
elif [ "$(grep -Ei 'arch|manjaro|artix' /etc/*release)" ]; then
echo "Arch"
elif [ "$(grep -Ei 'fedora' /etc/*release)" ]; then
echo "Fedora"
else
echo 1
return 1
@@ -21,6 +23,8 @@ if [[ $d == "Debian" ]]; then
sudo apt install -y curl
elif [[ $d == "Arch" ]]; then
sudo pacman -Sy curl
elif [[ $d == "Fedora" ]]; then
sudo dnf install curl
fi
if ! nix --version &>/dev/null; then