aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaria Lisina <sekoohaka.sarisan@gmail.com>2026-07-14 00:40:08 +0300
committerMaria Lisina <sekoohaka.sarisan@gmail.com>2026-07-14 00:40:08 +0300
commit03ddb343dc7dcf7b8ef14fb29e70537fc4a78e61 (patch)
treea08eb2aee58840c42b2e496c634bb97b949e6b07
parent452f6114b272820f5848e05a9a9bb2ea5a9a2652 (diff)
bot: Use proper env reset
Signed-off-by: Maria Lisina <sekoohaka.sarisan@gmail.com>
-rwxr-xr-xbot.zsh6
1 files changed, 2 insertions, 4 deletions
diff --git a/bot.zsh b/bot.zsh
index cbcf039..6b2cf14 100755
--- a/bot.zsh
+++ b/bot.zsh
@@ -4,11 +4,9 @@
# Copyright (C) 2024-2026 Danil Lisin
# SPDX-License-Identifier: Apache-2.0
-if [[ "${__bot_env}" != "0" ]]
+if (( __bot_env != 1 ))
then
- trap wait INT TERM
- env -i PATH="${PATH}" __bot_env=0 "${0}" ${@}
- exit ${?}
+ exec /usr/bin/env -i PATH="${PATH}" __bot_env=1 "${0}" ${@}
fi
exec 2> /dev/null