From 03c66529aa1ae2c83572bb02609edd60e233552e Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Sun, 9 Mar 2014 11:12:47 -0400 Subject: [PATCH] fix for the psfind bug. --- scripts/core/functions.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 } -- 2.34.1