Merge pull request #1053 from krrg/patch-1

Update bootstrap.sh
This commit is contained in:
Jeremy Soller 2017-09-08 20:48:00 -06:00 committed by GitHub
commit 8670caa8a5

View file

@ -507,31 +507,29 @@ 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
# Debian or any derivative of it
if hash 2>/dev/null apt-get; then
ubuntu "$emulator" "$defpackman"
fi
# Fedora
if hash 2>/dev/null dnf; then
fedora "$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"
fi # Debian or any derivative of it
elif hash 2>/dev/null apt-get; then
ubuntu "$emulator" "$defpackman"
# Fedora
elif hash 2>/dev/null dnf; then
fedora "$emulator"
# Gentoo # Gentoo
if hash 2>/dev/null emerge; then elif hash 2>/dev/null emerge; then
gentoo "$emulator" gentoo "$emulator"
fi
# SolusOS # SolusOS
if hash 2>/dev/null eopkg; then elif hash 2>/dev/null eopkg; then
solus "$emulator" solus "$emulator"
fi fi
fi fi
if [ "$dependenciesonly" = false ]; then if [ "$dependenciesonly" = false ]; then