diff options
author | makefu <root@pigstarter.de> | 2013-11-02 02:43:11 +0100 |
---|---|---|
committer | makefu <root@pigstarter.de> | 2013-11-02 02:43:11 +0100 |
commit | 3060d3c4ce12fae2e8b754f13d0e227af2134ab5 (patch) | |
tree | 962237107570fbac43dc2c9ece5cda483cf47daf /lib | |
parent | a1fc5b132349946dc9dc536de7a2f2812e407105 (diff) |
add deploy script
we are running hill billy style dependency resolution by cat-ing every lib into the resulting binary
Diffstat (limited to 'lib')
-rw-r--r-- | lib/punani | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -52,7 +52,7 @@ _punani_resolve_package(){ } _punani_aptget_install(){ apt-get -y install "$@" ;} _punani_aptget_remove(){ apt-get -y remove "$@" ;} -_punani_aptget_has() { dpkg -s "$1" >/dev/null 2>/dev/null ;} +_punani_aptget_has() { dpkg -s "$1" | grep -q "Status: install";} _punani_yum_install(){ yum -y install "$@" ;} _punani_yum_remove(){ yum -y remove "$@" ;} _punani_yum_has() { rpm -qa --qf "%{NAME}\n"| egrep "^${1}\$" >/dev/null ;} |