From 03ddb343dc7dcf7b8ef14fb29e70537fc4a78e61 Mon Sep 17 00:00:00 2001 From: Maria Lisina Date: Tue, 14 Jul 2026 00:40:08 +0300 Subject: bot: Use proper env reset Signed-off-by: Maria Lisina --- bot.zsh | 6 ++---- 1 file 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 -- cgit v1.2.3