Skip to content

Commit

Permalink
Trying to improve OS detection. Typos fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
NewEraCracker committed Oct 12, 2017
1 parent bfde233 commit 6b61046
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions loic.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ lower() {
}

what_distro() {
if which lsb_release ; then
echo lsb_release -si | lower
elif grep -qi ubuntu /etc/*release ; then
# if which lsb_release ; then
# echo lsb_release -si | lower
# el
if grep -qri ubuntu /etc/*-release ; then
echo "ubuntu"
elif [[ -e /etc/fedora-release ]] ; then
echo "fedora"
Expand Down Expand Up @@ -69,9 +70,9 @@ compile_loic() {
exit 1
fi
if [[ $DISTRO = 'ubuntu' || $DISTRO = 'debian' ]] ; then
sudo apt-get install $DEB_MONO_PKGS
sudo apt-get install $DEB_MONO_PKG
elif [[ $DISTRO = 'fedora' ]] ; then
sudo yum install $FED_MONO_PKS
sudo yum install $FED_MONO_PKG
fi
cd src; mdtool build
}
Expand Down

0 comments on commit 6b61046

Please sign in to comment.