Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
thewickedkarma authored Jun 25, 2021
1 parent 015ed92 commit e32f4df
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,25 @@ declare -A osInfo;
osInfo[/etc/redhat-release]=yum
osInfo[/etc/arch-release]=pacman
osInfo[/etc/gentoo-release]=emerge
osInfo[/etc/SuSE-release]=zypp
osInfo[/etc/debian_version]=apt-get

for f in ${!osInfo[@]}
do
if [[ -f $f ]];then
echo ${osInfo[$f]} detected..
echo Installing dependencies...
if ((${osInfo[$f]} == apt-get)); then
sudo apt-get install wget curl php unzip -y
fi
if ((${osInfo[$f]} == pacman)); then
sudo pacman -S wget curl php unzip --noconfirm
fi
if ((${osInfo[$f]} == yum)); then
sudo yum install wget curl php unzip
fi
if ((${osInfo[$f]} == emerge )); then
sudo emerge -u wget curl php unzip
fi

fi

Expand Down

0 comments on commit e32f4df

Please sign in to comment.