Merge pull request #253 from Akythius/patch-1

Fixed OS detection code
This commit is contained in:
Zach Latta 2014-03-27 10:22:23 -07:00
commit a1164482b6

View File

@ -4,9 +4,9 @@ function check_os() {
if [[ -f /etc/debian_version ]]; then if [[ -f /etc/debian_version ]]; then
INSTALL_SCRIPT="debian.sh" INSTALL_SCRIPT="debian.sh"
elif [[ -f /etc/redhat-release ]]; then elif [[ -f /etc/redhat-release ]]; then
INSTALL_SCRIPT="arch.sh"
elif [[ -f /etc/arch-release ]]; then
INSTALL_SCRIPT="redhat.sh" INSTALL_SCRIPT="redhat.sh"
elif [[ -f /etc/arch-release ]]; then
INSTALL_SCRIPT="arch.sh"
else else
echo "Error, unsupported distribution. Please install manually." echo "Error, unsupported distribution. Please install manually."
exit 1 exit 1