From ba1e48c20fc45ffe2dc0eb1e746281cfc30c2f45 Mon Sep 17 00:00:00 2001 From: Matteo Rossini Date: Fri, 29 Jan 2016 17:15:57 +0100 Subject: [PATCH] Fixed another bug when TAG_PRIORITY is on. --- src/slackpkgplus.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slackpkgplus.sh b/src/slackpkgplus.sh index 1a280c5..3683c76 100755 --- a/src/slackpkgplus.sh +++ b/src/slackpkgplus.sh @@ -760,7 +760,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then LINEIDX=${PKGINFOS/:*/} #LINEIDX=$(echo "$PKGINFOS" | cut -f1 -d":") PKGDATA=( ${PKGINFOS/*:/} ) #PKGDATA=( $(echo "$PKGINFOS" | cut -f2- -d":") ) mv ${TMPDIR}/pkglist ${TMPDIR}/pkglist.old - sed -i --expression "${LINEIDX}d" --expression "${PRIORITYIDX}i${PKGDATA[*]}" ${TMPDIR}/pkglist.old > ${TMPDIR}/pkglist + sed --expression "${LINEIDX}d" --expression "${PRIORITYIDX}i${PKGDATA[*]}" ${TMPDIR}/pkglist.old > ${TMPDIR}/pkglist (( PRIORITYIDX++ )) if [ "$PKGDATA" ]; then NAME=${PKGDATA[1]}