X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fcore%2Ffunctions.sh;h=3024f8200ece981d94c4eb1fd52eaeab8400d18d;hb=0237507bda3ecd0cebab0eeddc3cfefa4d9b3650;hp=8a2f35865a36c59cad49bda5ef6c63af8c465cf9;hpb=3563fcc6ec0a02b299797e20e868ca11e9c60c49;p=feisty_meow.git diff --git a/scripts/core/functions.sh b/scripts/core/functions.sh index 8a2f3586..3024f820 100644 --- a/scripts/core/functions.sh +++ b/scripts/core/functions.sh @@ -77,7 +77,6 @@ if [ -z "$skip_all" ]; then # locates a process given a search pattern to match in the process list. function psfind() { local -a patterns=("${@}") - mkdir $TEST_TEMP/grid_logs &>/dev/null local PID_DUMP="$(mktemp "$TMP/zz_pidlist.XXXXXX")" local -a PIDS_SOUGHT if [ "$OS" == "Windows_NT" ]; then @@ -138,13 +137,13 @@ if [ -z "$skip_all" ]; then echo "psa finds processes by pattern, but there was no pattern on the command line." return 1 fi - p=$(psfind "$1") + p=$(psfind "${@}") if [ -z "$p" ]; then # no matches. return 0 fi echo "" - echo "Processes containing \"$1\"..." + echo "Processes matching ${@}..." echo "" if [ -n "$IS_DARWIN" ]; then unset fuzil_sentinel