diff --git a/src/slackpkgplus.sh b/src/slackpkgplus.sh index a4b792d..572c6a9 100755 --- a/src/slackpkgplus.sh +++ b/src/slackpkgplus.sh @@ -727,7 +727,8 @@ if [ "$SLACKPKGPLUS" = "on" ];then # PKGDATA="" LINEIDX="" - PKGINFOS=$(grep -n "^${DIR} " ${TMPDIR}/pkglist | grep -w "${PAT}" | grep -m 1 "^[[:digit:]]\+:${DIR} ${ARGUMENT} ") + grep -n "^${DIR} " ${TMPDIR}/pkglist | grep -w "${PAT}" > ${TMPDIR}/packages.matches + PKGINFOS=$(grep -m 1 "^[[:digit:]]\+:${DIR} ${ARGUMENT} " ${TMPDIR}/packages.matches) if [ ! -z "$PKGINFOS" ] ; then LINEIDX=$(echo "$PKGINFOS" | cut -f1 -d":")