From 5df9f3a8ff52a11445982a215d89672306f0bccb Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 14 Nov 2013 12:18:41 +0100 Subject: ship punani: revert oversimplification slightly --- ship/lib/punani | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ship/lib/punani') diff --git a/ship/lib/punani b/ship/lib/punani index e07d77af..2c48f883 100644 --- a/ship/lib/punani +++ b/ship/lib/punani @@ -6,7 +6,7 @@ _punani_resolve_package(){ eval "echo \"\${_punanidb_${PACKER}_$1}\"" } -KNOWN_PACKERS='pacman aptget yum brew' +KNOWN_PACKERS='pacman apt-get yum brew' _punani_pacman_install(){ pacman --noconfirm -S --needed "$@" ;} _punani_pacman_remove(){ pacman -Rcs "$@" ;} _punani_pacman_has(){ pacman -Q "$1" >/dev/null;} @@ -21,8 +21,8 @@ _punani_brew_remove(){ brew remove "$@";} _punani_brew_has(){ error "not implemented"; return 1 ;} punani(){ - for PACKER in ${KNOWN_PACKERS:-null}; do - exists "$PACKER" && info "using $PACKER" && break + for p in ${KNOWN_PACKERS:-null}; do + exists $p && info "using $p" && PACKER=`echo $p | tr -d -` && break done || die 'Error 2: no package manager found; no punani for you!' ACTION="$1"; shift -- cgit v1.2.3