diff options
author | Christian Hesse <mail@eworm.de> | 2023-09-15 09:37:20 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2023-09-15 09:54:59 +0200 |
commit | 66ebcf2bbdb2a53328cb8603885da4d2da781b1c (patch) | |
tree | dcf9af72bcd804634111043293e69c9f40f973d6 /telegram-chat.rsc | |
parent | 5349c9b52e48a1cc5245c8b76492cbbf2bd45ac4 (diff) |
telegram-chat: use the full command name :execute
Diffstat (limited to 'telegram-chat.rsc')
-rw-r--r-- | telegram-chat.rsc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/telegram-chat.rsc b/telegram-chat.rsc index ba2a3ff..a367b78 100644 --- a/telegram-chat.rsc +++ b/telegram-chat.rsc @@ -106,7 +106,7 @@ $WaitFullyConnected; :local File ("tmpfs/telegram-chat/" . [ $GetRandom20CharAlNum 6 ]); $MkDir "tmpfs/telegram-chat"; $LogPrintExit2 info $0 ("Running command from update " . $UpdateID . ": " . $Text) false; - :exec script=(":do {\n" . $Text . "\n} on-error={ :execute script=\"/\" file=" . $File . ".failed };" . \ + :execute script=(":do {\n" . $Text . "\n} on-error={ :execute script=\"/\" file=" . $File . ".failed };" . \ ":execute script=\"/\" file=" . $File . ".done") file=$File; :if ([ $WaitForFile ($File . ".done.txt") [ $EitherOr $TelegramChatRunTime 20s ] ] = false) do={ :set State "The command did not finish, still running in background.\n\n"; |