diff options
author | Christian Hesse <mail@eworm.de> | 2023-02-03 22:30:08 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2023-02-03 22:30:08 +0100 |
commit | 600203797bdde92b606fa916d4066304c95bd58f (patch) | |
tree | fc34698941e0771fb1dc19c3b789d1e4051fa884 /telegram-chat | |
parent | 04c26d3d2e0856cd96e202ce71ff748761b4520e (diff) |
telegram-chat: no need to :put ...
... a simple change to root dir is sufficient.
Diffstat (limited to 'telegram-chat')
-rw-r--r-- | telegram-chat | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/telegram-chat b/telegram-chat index 9fcbc4f..4c6ea21 100644 --- a/telegram-chat +++ b/telegram-chat @@ -103,8 +103,8 @@ $WaitFullyConnected; :local File ("tmpfs/telegram-chat/" . [ $GetRandom20CharAlNum 6 ]); $MkDir "tmpfs/telegram-chat"; $LogPrintExit2 info $0 ("Running command: " . $Text) false; - :exec script=(":do {\n" . $Text . "\n} on-error={ :execute script=\":put\" file=" . $File . ".failed };" . \ - ":execute script=\":put\" file=" . $File . ".done") file=$File; + :exec 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"; } |