fixed broken build

This commit is contained in:
Adrian Cole 2012-11-06 10:02:12 -03:00
parent c7cff5cc94
commit 795fa15147
2 changed files with 8 additions and 4 deletions

View File

@ -89,14 +89,16 @@ alias yum-install="yum --quiet --nogpgcheck -y install"
function ensure_cmd_or_install_package_apt(){
local cmd=$1
local pkg=$2
shift
local pkg=$*
hash $cmd 2>/dev/null || ( apt-get-update && apt-get-install $pkg )
}
function ensure_cmd_or_install_package_yum(){
local cmd=$1
local pkg=$2
shift
local pkg=$*
hash $cmd 2>/dev/null || yum-install $pkg
}

View File

@ -89,14 +89,16 @@ alias yum-install="yum --quiet --nogpgcheck -y install"
function ensure_cmd_or_install_package_apt(){
local cmd=$1
local pkg=$2
shift
local pkg=$*
hash $cmd 2>/dev/null || ( apt-get-update && apt-get-install $pkg )
}
function ensure_cmd_or_install_package_yum(){
local cmd=$1
local pkg=$2
shift
local pkg=$*
hash $cmd 2>/dev/null || yum-install $pkg
}