aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaria Lisina <sekoohaka.sarisan@gmail.com>2026-03-24 18:46:31 +0300
committerMaria Lisina <sekoohaka.sarisan@gmail.com>2026-03-24 18:46:31 +0300
commitd02c303868585eb2e0ed70dfbd9b847b604a6559 (patch)
tree161cb9b523667c4b8959c39f97dce2ba86339f2a
parent0ec8d45fee5bccba5426c848a74ebbf19da14ebe (diff)
bot: Simplify trap before fork
Signed-off-by: Maria Lisina <sekoohaka.sarisan@gmail.com>
-rwxr-xr-xbot.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot.zsh b/bot.zsh
index fb6323a..42a47df 100755
--- a/bot.zsh
+++ b/bot.zsh
@@ -6,7 +6,7 @@
if [[ "${__bot_env}" != "0" ]]
then
- trap 'wait && exit 0' INT TERM
+ trap wait INT TERM
env -i PATH="${PATH}" __bot_env=0 "${0}" ${@}
exit ${?}
fi