Skip to content

Commit 17cac38

Browse files
committed
Make extras/installer install dependencies even when run as root
1 parent a6953f1 commit 17cac38

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

extras/installer.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ install() {
2424

2525
if [ $EUID -ne 0 ]; then
2626
sudo $DISTRO_INSTALL $1 || abort "Failed while trying to install '$1'. Please install it manually and try again."
27+
else
28+
$DISTRO_INSTALL $1 || abort "Failed while trying to install '$1'. Please install it manually and try again."
2729
fi
2830
}
2931

0 commit comments

Comments
 (0)