From 81ab02668cc37c6e540fbfbc23a32828901b4660 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 12 Sep 2011 15:01:01 +0200 Subject: punani: deobfuscate source, handle multiple parms --- punani/bin/punani | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'punani/bin') diff --git a/punani/bin/punani b/punani/bin/punani index 1dd72542..7278e38a 100755 --- a/punani/bin/punani +++ b/punani/bin/punani @@ -90,10 +90,10 @@ handle_system () { mgr=`arch_aur_helper` if $mgr -S $1 ;then echo "++ finished" - exit 0 + return 0 else echo "!! giving up...i am sorry" - exit 1 + return 1 fi echo else @@ -241,10 +241,10 @@ case $role in esac shift `echo $OPTIND-1 | bc` -guess_system - +guess_system handle_system -for name; do - "$command" "$name" + +for name in "$@"; do + "$command" "$name" || echo "!! could not install $name" done -- cgit v1.2.3