mirror of
https://github.com/octoleo/telegram-bot-bash.git
synced 2024-11-22 23:45:10 +00:00
more random tmp file name
This commit is contained in:
parent
d6b640ec11
commit
2852e7875a
@ -405,7 +405,7 @@ process_updates() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
process_client() {
|
process_client() {
|
||||||
local TMP="$TMPDIR/$$-MESSAGE"
|
local TMP="$TMPDIR/$RANDOM-MESSAGE"
|
||||||
echo "$UPDATE" >"$TMP"
|
echo "$UPDATE" >"$TMP"
|
||||||
# Message
|
# Message
|
||||||
MESSAGE[0]="$(echo -e "$(sed -n -e '/\["result",'$PROCESS_NUMBER',"message","text"\]/ s/.*\][ \t]"\(.*\)"$/\1/p' <"$TMP")" | sed 's#\\/#/#g')"
|
MESSAGE[0]="$(echo -e "$(sed -n -e '/\["result",'$PROCESS_NUMBER',"message","text"\]/ s/.*\][ \t]"\(.*\)"$/\1/p' <"$TMP")" | sed 's#\\/#/#g')"
|
||||||
|
Loading…
Reference in New Issue
Block a user