fix counter in install-new

This commit is contained in:
Matteo Rossini 2020-02-25 10:22:38 +01:00
parent 169f010256
commit 49896b5b05

View file

@ -947,7 +947,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then
if [ -z "$TOPROCESS" ];then
case "$CMD" in
upgrade-all) TOPROCESS=$(comm -1 -2 ${TMPDIR}/lpkg ${TMPDIR}/dpkg | comm -1 -2 - ${TMPDIR}/spkg|wc -l);;
install-new) TOPROCESS=$(awk -f /usr/libexec/slackpkg/install-new.awk ${ROOT}/${WORKDIR}/ChangeLog.txt|wc -l);;
install-new) TOPROCESS=$[$(awk -f /usr/libexec/slackpkg/install-new.awk ${ROOT}/${WORKDIR}/ChangeLog.txt|sort -u|wc -l)+7];;
install|upgrade|reinstall)
TOPROCESS=0
for ARGUMENT in $(echo $INPUTLIST); do