diff options
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 62fd7f5..6bd0c61 100644 --- a/lib/hydra/misc +++ b/lib/hydra/misc @@ -25,13 +25,13 @@ function hydra_user_input { fi } -# Install a package. +# Install a package based on command name. function hydra_install_package { if [ -z "$1" ]; then return fi - dpkg -l $1 &> /dev/null + which $1 &> /dev/null if [ "$?" == "1" ]; then apt-get install $1 -y |