From: Silvio Rhatto Date: Sat, 7 May 2011 02:34:50 +0000 (-0300) Subject: Refactoring hydra_install_package X-Git-Tag: 0.1~341 X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=841f0e874d8ad28dc1a78b6e5d2347e30570b254;p=hydra.git Refactoring hydra_install_package --- 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