Make extras/installer install dependencies even when run as root

This commit is contained in:
Alex Malinovich 2018-04-14 19:30:39 -07:00
commit 17cac380b1

View file

@ -24,6 +24,8 @@ install() {
if [ $EUID -ne 0 ]; then
sudo $DISTRO_INSTALL $1 || abort "Failed while trying to install '$1'. Please install it manually and try again."
else
$DISTRO_INSTALL $1 || abort "Failed while trying to install '$1'. Please install it manually and try again."
fi
}