From 2852e7875aac9ec437c25d59e656e77499304099 Mon Sep 17 00:00:00 2001 From: "Kay Marquardt (Gnadelwartz)" Date: Tue, 26 Mar 2019 20:35:42 +0100 Subject: [PATCH] more random tmp file name --- bashbot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bashbot.sh b/bashbot.sh index 36c9880..267352e 100755 --- a/bashbot.sh +++ b/bashbot.sh @@ -405,7 +405,7 @@ process_updates() { done } process_client() { - local TMP="$TMPDIR/$$-MESSAGE" + local TMP="$TMPDIR/$RANDOM-MESSAGE" echo "$UPDATE" >"$TMP" # Message MESSAGE[0]="$(echo -e "$(sed -n -e '/\["result",'$PROCESS_NUMBER',"message","text"\]/ s/.*\][ \t]"\(.*\)"$/\1/p' <"$TMP")" | sed 's#\\/#/#g')"