this check should work.

This commit is contained in:
staticsafe 2012-06-16 14:54:15 -04:00
parent 5fa3cf0098
commit 07d3bba36b

View File

@ -30,7 +30,7 @@ distrocheck() {
hash port &>/dev/null && userdistro="OSX" # For OSX, make sure the port binary is in your PATH first. hash port &>/dev/null && userdistro="OSX" # For OSX, make sure the port binary is in your PATH first.
hash pkg_add &>/dev/null && userdistro="FreeBSD" # For FreeBSD hash pkg_add &>/dev/null && userdistro="FreeBSD" # For FreeBSD
hash equo &>/dev/null && userdistro="Sabayon" # For Sabayon hash equo &>/dev/null && userdistro="Sabayon" # For Sabayon
hash emerge &>/dev/null && [[userdistro != "Sabayon"]] && userdistro="Gentoo" # For Gentoo hash emerge &>/dev/null && hash equo &>/dev/null || userdistro="Gentoo" # For Gentoo
} }
installpackages() { installpackages() {