Revert "bash version differences? hmm"

This reverts commit c60634b956.
This commit is contained in:
staticsafe 2012-06-16 14:35:31 -04:00
parent c60634b956
commit 2d33c85be7
1 changed files with 8 additions and 8 deletions

View File

@ -11,8 +11,8 @@ die() {
# Some variable(s)
$userdistro="NULL"
$repo="git://github.com/staticsafe/dotfiles.git"
userdistro="NULL"
repo="git://github.com/staticsafe/dotfiles.git"
portpath="/opt/local/bin/port" # This is the default install directory for the MacPorts port binary, you may find this useful.
@ -24,12 +24,12 @@ sudocheck() {
}
distrocheck() {
hash apt-get &>/dev/null && $userdistro="Debian" # For Debian based distros.
hash yum &>/dev/null && $userdistro="Fedora" # For RHEL/CentOS/Fedora
hash pacman &>/dev/null && $userdistro="Arch" # For Arch Linux
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 equo &>/dev/null && $userdistro="Sabayon" # For Sabayon
hash apt-get &>/dev/null && userdistro="Debian" # For Debian based distros.
hash yum &>/dev/null && userdistro="Fedora" # For RHEL/CentOS/Fedora
hash pacman &>/dev/null && userdistro="Arch" # For Arch Linux
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 equo &>/dev/null && userdistro="Sabayon" # For Sabayon
hash emerge &>/dev/null && $userdistro != "Sabayon" && userdistro="Gentoo" # For Gentoo
}