replace package iteration with one-command shot

This commit is contained in:
Armin 2016-07-09 10:21:25 +02:00
parent 0c5d320caf
commit 3848779f64
1 changed files with 3 additions and 9 deletions

12
vpm
View File

@ -374,17 +374,11 @@ case "$arg" in
msg "ERROR: install: argument missing, try --help." msg "ERROR: install: argument missing, try --help."
exit 1 exit 1
fi fi
args=($@)
count=0 count=0
msg "Packages will be installed one-by-one" msg "Installing packages: $@ (xbps-install -S $@) ..."
msg "Use \"forceinstall\" to override this if you know what you're doing." xbps-install -S "$@"
for arg in "${args[@]}"; do
let count=count+1
msg "Installing packages: ($count/${#args[@]}): $arg (xbps-install -S $arg) ..."
xbps-install -S "$arg"
ret="$?" ret="$?"
msg "[xbps-install -S $arg] return code: $ret" msg "[xbps-install -S $@] return code: $ret"
done
;; ;;
devinstall) devinstall)