summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-09-29 12:15:22 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-09-29 12:15:22 -0300
commit3dd16ce361e30d805f2bb983ab8e365f8ef1035a (patch)
tree19904b46156c24fcd9a847fb852b99bf26088c35 /lib
parent5fde61c778e0fec2c693cc35e2711c63d4b9bb90 (diff)
downloadhydra-3dd16ce361e30d805f2bb983ab8e365f8ef1035a.tar.gz
hydra-3dd16ce361e30d805f2bb983ab8e365f8ef1035a.tar.bz2
Auto install dependencies
Diffstat (limited to 'lib')
-rw-r--r--lib/hydra/misc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hydra/misc b/lib/hydra/misc
index 894502d..0105760 100644
--- a/lib/hydra/misc
+++ b/lib/hydra/misc
@@ -66,7 +66,7 @@ function hydra_install_package {
if [ "$?" == "1" ]; then
echo "Installing package $1..."
- DEBIAN_FRONTEND=noninteractive apt-get install $1 -y
+ DEBIAN_FRONTEND=noninteractive $SUDO apt-get install $1 -y || exit 1
fi
}