From 841f0e874d8ad28dc1a78b6e5d2347e30570b254 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Fri, 6 May 2011 23:34:50 -0300 Subject: Refactoring hydra_install_package --- lib/hydra/misc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/hydra/misc') 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 -- cgit v1.2.3