diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-05-06 23:34:50 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-05-06 23:34:50 -0300 |
commit | 841f0e874d8ad28dc1a78b6e5d2347e30570b254 (patch) | |
tree | b9c774014e458ddc68dd4dbe9686fd6ec87c2868 /lib | |
parent | a06184080bb791c5251d301f1dd3ae951e1b5e19 (diff) | |
download | hydra-841f0e874d8ad28dc1a78b6e5d2347e30570b254.tar.gz hydra-841f0e874d8ad28dc1a78b6e5d2347e30570b254.tar.bz2 |
Refactoring hydra_install_package
Diffstat (limited to 'lib')
-rw-r--r-- | lib/hydra/misc | 4 |
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 |