budhash / install-eclipse

non-interactive eclipse installer
Apache License 2.0
11 stars 6 forks source link

script doesn't support current operating system. supported : MAC #8

Open mfaridk opened 3 years ago

mfaridk commented 3 years ago

The variable __SUPPORTED_OS in install-eclipse is missing the os type LINUX LINUX-REDHAT LINUX-SUSE LINUX-MANDRAKE LINUX-DEBIAN according to the condition at

if [ -f /etc/redhat-release ] ; then _os_base="LINUX-REDHAT" elif [ -f /etc/SuSE-release ] ; then _os_base="LINUX-SUSE" elif [ -f /etc/mandrake-release ] ; then _os_base="LINUX-MANDRAKE" elif [ -f /etc/debian_version ] ; then _os_base="LINUX-DEBIAN" else _os_base="LINUX"

the variable SUPPORTED_OS needs to be modified from __SUPPORTED_OS=(MAC LINUX-DEBIAN) to **readonly SUPPORTED_OS=(MAC LINUX-DEBIAN LINUX LINUX-REDHAT LINUX-SUSE LINUX-MANDRAKE LINUX-DEBIAN)**

I don't have privilage to raise a PR, please get it fix. Thank you.