From 1fc7003fe06fa6bec96136a915a008660c3731a3 Mon Sep 17 00:00:00 2001 From: makefu Date: Tue, 29 Nov 2011 17:29:38 +0100 Subject: //punani client: install multiple packages one by one like the old punani did --- punani/bin/punani | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'punani') diff --git a/punani/bin/punani b/punani/bin/punani index 4be74f77..3f11cec8 100755 --- a/punani/bin/punani +++ b/punani/bin/punani @@ -52,11 +52,15 @@ fi case "$ACTION" in install) set -x - exec sudo $PACKER_CMD $INSTALL_PARAM $RESOLVED + for PKG in $RESOLVED; do + sudo $PACKER_CMD $INSTALL_PARAM $PKG || echo "Cannot install $PKG!" + done ;; remove) set -x - exec sudo $PACKER_CMD $REMOVE_PARAM $RESOLVED + for PKG in $RESOLVED; do + sudo $PACKER_CMD $REMOVE_PARAM $PKG || echo "Cannot remove $PKG!" + done ;; *) echo "usage: `basename $0` (install|remove) PACKAGE..." -- cgit v1.2.3