Fixed a bug with TAG_PRIORITY. Thanks to yars068.

This commit is contained in:
Matteo Rossini 2016-01-26 22:59:18 +01:00
parent 3f16140eeb
commit 796b6b1c93

View file

@ -756,7 +756,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then
)| grep -f - -n -m 1 ${TMPDIR}/pkglist
)
if [ ! -z "$PKGINFOS" ] ; then
LINEIDX=${$PKGINFOS/:*/} #LINEIDX=$(echo "$PKGINFOS" | cut -f1 -d":")
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