aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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