replace package iteration with one-command shot
This commit is contained in:
parent
0c5d320caf
commit
3848779f64
12
vpm
12
vpm
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue