aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/hydra/misc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/hydra/misc b/lib/hydra/misc
index 6bd0c61..1187068 100644
--- a/lib/hydra/misc
+++ b/lib/hydra/misc
@@ -25,13 +25,13 @@ function hydra_user_input {
fi
}
-# Install a package based on command name.
+# Install a package.
function hydra_install_package {
if [ -z "$1" ]; then
return
fi
- which $1 &> /dev/null
+ dpkg -s cryptsetu $1 &> /dev/null
if [ "$?" == "1" ]; then
apt-get install $1 -y