fix for the psfind bug.
authorChris Koeritz <fred@gruntose.com>
Sun, 9 Mar 2014 15:12:47 +0000 (11:12 -0400)
committerChris Koeritz <fred@gruntose.com>
Sun, 9 Mar 2014 15:12:47 +0000 (11:12 -0400)
scripts/core/functions.sh

index c72a80aa4927b6a49f662dd37ad63bf974ec2796..16c4473931071d695e23ed0952345fb9e2b5d782 100644 (file)
@@ -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
   }