Switch rg (textproc/ripgrep) to in-base fgrep.
This commit is contained in:
parent
4d112e24d4
commit
0596c76c90
1 changed files with 2 additions and 3 deletions
|
@ -37,7 +37,6 @@ LISTFILE=pkglist.all
|
||||||
TMPDIR=/tmp
|
TMPDIR=/tmp
|
||||||
TMPFILE=${LISTFILE}-`id -u`-`date "+%Y%m%d%H%M%S"`
|
TMPFILE=${LISTFILE}-`id -u`-`date "+%Y%m%d%H%M%S"`
|
||||||
|
|
||||||
|
|
||||||
echo Output = ${LISTDIR}/${LISTFILE}
|
echo Output = ${LISTDIR}/${LISTFILE}
|
||||||
echo Temporary = ${TMPDIR}/${TMPFILE}
|
echo Temporary = ${TMPDIR}/${TMPFILE}
|
||||||
|
|
||||||
|
@ -51,12 +50,12 @@ if [ -f ${LISTDIR}/${LISTFILE}.old ] ; then chmod 666 ${LISTDIR}/${LISTFILE}.old
|
||||||
|
|
||||||
# Regenerate list with newly installed ports.
|
# Regenerate list with newly installed ports.
|
||||||
|
|
||||||
for PORT in `pkg version -o | cut -f 1 -w` ; do
|
for PORT in `pkg query -a %n` ; do
|
||||||
FLG=NO
|
FLG=NO
|
||||||
for NONEED in ${BLOCKLISTS} ; do
|
for NONEED in ${BLOCKLISTS} ; do
|
||||||
if [ ${PORT} = ${NONEED} ] ; then FLG="YES" ; fi
|
if [ ${PORT} = ${NONEED} ] ; then FLG="YES" ; fi
|
||||||
done
|
done
|
||||||
rg "${PORT}\|\|" ${PORTSDIR}/MOVED > /dev/null
|
fgrep "${PORT}\|\|" ${PORTSDIR}/MOVED > /dev/null
|
||||||
RET=$?
|
RET=$?
|
||||||
if [ 0 -eq $((RET)) ] ; then FLG="YES" ; fi
|
if [ 0 -eq $((RET)) ] ; then FLG="YES" ; fi
|
||||||
if [ "NO" = ${FLG} ] ; then echo ${PORT} >> ${TMPDIR}/${TMPFILE} ; fi
|
if [ "NO" = ${FLG} ] ; then echo ${PORT} >> ${TMPDIR}/${TMPFILE} ; fi
|
||||||
|
|
Loading…
Reference in a new issue