diff options
| author | root <root@monitoring.shack> | 2012-09-13 23:39:58 +0000 |
|---|---|---|
| committer | root <root@monitoring.shack> | 2012-09-13 23:39:58 +0000 |
| commit | db849a18e1659ff28433384d2cdca2989a6d5df0 (patch) | |
| tree | d600fb3f3e5f0a54b6254c85ee8a3b836ef3d90d /punani/bin | |
| parent | d5d39fc3d56b021b642ee6e1d5625524ebbc4d99 (diff) | |
| parent | 88d4bdc29eb9ce5f62099f2be1488ae927aa09d5 (diff) | |
Merge branch 'master' of github.com:krebscode/painload
Diffstat (limited to 'punani/bin')
| -rwxr-xr-x | punani/bin/punani | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/punani/bin/punani b/punani/bin/punani index 97c7ac85..23ba5e00 100755 --- a/punani/bin/punani +++ b/punani/bin/punani @@ -8,26 +8,28 @@ PKGS="$*" ## find package manager if ! :; then : # dummy case, so the rest has a common format -elif for PACKER_CMD in yum +elif for PACKER_CMD in aptitude apt-get do type $PACKER_CMD 2>/dev/null 1>&2 && break; done; then INSTALL_PARAM='-y install' REMOVE_PARAM='-y remove' -elif for PACKER_CMD in brew - do type $PACKER_CMD 2>/dev/null 1>&2 && break; done; then - INSTALL_PARAM='install' - REMOVE_PARAM='remove' - elif for PACKER_CMD in bauerbill packer yaourt pacman do type $PACKER_CMD 2>/dev/null 1>&2 && break; done; then INSTALL_PARAM='--noconfirm -S --needed' REMOVE_PARAM='-Rcs' -elif for PACKER_CMD in aptitude apt-get +elif for PACKER_CMD in yum do type $PACKER_CMD 2>/dev/null 1>&2 && break; done; then INSTALL_PARAM='-y install' REMOVE_PARAM='-y remove' +elif for PACKER_CMD in brew + do type $PACKER_CMD 2>/dev/null 1>&2 && break; done; then + INSTALL_PARAM='install' + REMOVE_PARAM='remove' + + + else echo "Error 2: no known package manager found; no punani for you!" >&2 exit 23 |
