Update bootstrap.sh

This commit is contained in:
Ken Reese 2017-09-06 17:09:10 -06:00 committed by GitHub
parent 32fed717dc
commit 4722b4eea1

View file

@ -507,33 +507,28 @@ banner
if [ "Darwin" == "$(uname -s)" ]; then if [ "Darwin" == "$(uname -s)" ]; then
osx "$emulator" osx "$emulator"
else else
# Here we will user package managers to determine which operating system the user is using # Here we will use package managers to determine which operating system the user is using.
# Arch linux # Arch linux
if hash 2>/dev/null pacman; then if hash 2>/dev/null pacman; then
archLinux "$emulator" archLinux "$emulator"
fi
# Suse and derivatives # Suse and derivatives
if hash 2>/dev/null zypper; then elif hash 2>/dev/null zypper; then
suse "$emulator" suse "$emulator"
else # Debian or any derivative of it
# Debian or any derivative of it elif hash 2>/dev/null apt-get; then
if hash 2>/dev/null apt-get; then ubuntu "$emulator" "$defpackman"
ubuntu "$emulator" "$defpackman" # Fedora
fi elif hash 2>/dev/null dnf; then
# Fedora fedora "$emulator"
if hash 2>/dev/null dnf; then # Gentoo
fedora "$emulator" elif hash 2>/dev/null emerge; then
fi gentoo "$emulator"
# SolusOS
# Gentoo elif hash 2>/dev/null eopkg; then
if hash 2>/dev/null emerge; then solus "$emulator"
gentoo "$emulator" fi
fi
# SolusOS
if hash 2>/dev/null eopkg; then
solus "$emulator"
fi
fi
fi fi