more random tmp file name

This commit is contained in:
Kay Marquardt (Gnadelwartz) 2019-03-26 20:35:42 +01:00
parent d6b640ec11
commit 2852e7875a

View File

@ -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')"