Add support to Fedora systems

This commit is contained in:
2024-03-27 20:23:31 +00:00
committed by GitHub
parent 4334b48490
commit 6dad020244

View File

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