summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-05-06 23:34:50 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-05-06 23:34:50 -0300
commit841f0e874d8ad28dc1a78b6e5d2347e30570b254 (patch)
treeb9c774014e458ddc68dd4dbe9686fd6ec87c2868 /lib
parenta06184080bb791c5251d301f1dd3ae951e1b5e19 (diff)
downloadhydra-841f0e874d8ad28dc1a78b6e5d2347e30570b254.tar.gz
hydra-841f0e874d8ad28dc1a78b6e5d2347e30570b254.tar.bz2
Refactoring hydra_install_package
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