More cleanup

This commit is contained in:
Alex Malinovich 2018-04-19 22:58:12 -07:00
parent 2ddabf92bd
commit 241fe12e04
2 changed files with 1 additions and 2 deletions

View file

@ -38,7 +38,6 @@ install() {
sleep 1 sleep 1
[ -z "$DISTRO_INSTALL" ] && check_distro [ -z "$DISTRO_INSTALL" ] && check_distro
echo "Installing using '$DISTRO_INSTALL $1'"
if [ $EUID -ne 0 ]; then if [ $EUID -ne 0 ]; then
sudo $DISTRO_INSTALL $1 || abort "Failed while trying to install '$1'. Please install it manually and try again." sudo $DISTRO_INSTALL $1 || abort "Failed while trying to install '$1'. Please install it manually and try again."

View file

@ -300,7 +300,7 @@ if [ -z "${DISTRO_INSTALL}" ]; then
check_distro check_distro
BUILD="linux-ubuntu-${ARCH}" BUILD="linux-ubuntu-${ARCH}"
if [ "${FORCE}" = "yes" ]; then if [ "${FORCE}" = "yes" ]; then
DISTRO_INSTALL="${DISTRO REINSTALL}" DISTRO_INSTALL="${DISTRO_REINSTALL}"
fi fi
elif [ -z "${DISTRO}" -o -z "${BUILD}" ]; then elif [ -z "${DISTRO}" -o -z "${BUILD}" ]; then
error "You must define both DISTRO and BUILD" error "You must define both DISTRO and BUILD"