Browse Source

Better Way To Detect Linux Distro

old-stable
Mitesh Shah 11 years ago
parent
commit
2ee3e9274a
  1. 5
      install.sh

5
install.sh

@ -2,8 +2,11 @@
# Make Variables Available For Later Use
LINUX_DISTRO=$(lsb_release -i | cut -d':' -f2 | awk '{print $1}')
# Checking Linux Distro Is Ubuntu # Checking Linux Distro Is Ubuntu
if [ ! -f /etc/lsb-release ] && [ ! -f /etc/debian_version ] if [ "$LINUX_DISTRO" != "Ubuntu" ] && [ "$LINUX_DISTRO" != "Debian" ]
then then
echo -e "\033[31mEasyEngine (ee) Is Made For Ubuntu And Debian Only As Of Now\e[0m" echo -e "\033[31mEasyEngine (ee) Is Made For Ubuntu And Debian Only As Of Now\e[0m"
echo -e "\033[31mYou Are Free To Fork EasyEngine (ee): https://github.com/rtCamp/easyengine/fork\e[0m" echo -e "\033[31mYou Are Free To Fork EasyEngine (ee): https://github.com/rtCamp/easyengine/fork\e[0m"

Loading…
Cancel
Save