Skip to content

Commit 2ee3e92

Browse files
committed
Better Way To Detect Linux Distro
1 parent a9b3e06 commit 2ee3e92

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

install.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22

33

44

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

0 commit comments

Comments
 (0)