From: Chris Koeritz Date: Sun, 9 Mar 2014 15:12:47 +0000 (-0400) Subject: fix for the psfind bug. X-Git-Tag: 2.140.90~812 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=03c66529aa1ae2c83572bb02609edd60e233552e;p=feisty_meow.git fix for the psfind bug. --- diff --git a/scripts/core/functions.sh b/scripts/core/functions.sh index c72a80aa..16c44739 100644 --- a/scripts/core/functions.sh +++ b/scripts/core/functions.sh @@ -122,11 +122,10 @@ if [ -z "$skip_all" ]; then done fi if [ ${#PIDS_SOUGHT[*]} -ne 0 ]; then - local TMPFUD=$(mktemp $TMP/junkpids.XXXXXX) - printf -- '%s\n' ${PIDS_SOUGHT[@]} | sort | uniq >$TMPFUD - PIDS_SOUGHT=$(cat $TMPFUD) + local PIDS_SOUGHT2=$(printf -- '%s\n' ${PIDS_SOUGHT[@]} | sort | uniq) + PIDS_SOUGHT=() + PIDS_SOUGHT=${PIDS_SOUGHT2[*]} echo ${PIDS_SOUGHT[*]} -#rm $TMPFUD fi /bin/rm $PID_DUMP }