diff options
| author | Maria Lisina <sekoohaka.sarisan@gmail.com> | 2026-07-14 00:40:08 +0300 |
|---|---|---|
| committer | Maria Lisina <sekoohaka.sarisan@gmail.com> | 2026-07-14 00:40:08 +0300 |
| commit | 03ddb343dc7dcf7b8ef14fb29e70537fc4a78e61 (patch) | |
| tree | a08eb2aee58840c42b2e496c634bb97b949e6b07 | |
| parent | 452f6114b272820f5848e05a9a9bb2ea5a9a2652 (diff) | |
bot: Use proper env reset
Signed-off-by: Maria Lisina <sekoohaka.sarisan@gmail.com>
| -rwxr-xr-x | bot.zsh | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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 |
