aboutsummaryrefslogtreecommitdiff
path: root/bot.zsh
diff options
context:
space:
mode:
authorMaria Lisina <sekoohaka.sarisan@gmail.com>2026-07-15 20:05:29 +0300
committerMaria Lisina <sekoohaka.sarisan@gmail.com>2026-07-15 20:05:53 +0300
commit3a94dac3e3fbcf7f89235af94919539a37597b6a (patch)
treeb263c231c2a7de387d1cecf2f26208a8fa6cb7d8 /bot.zsh
parent03ddb343dc7dcf7b8ef14fb29e70537fc4a78e61 (diff)
bot: Merge env reset and stderr suppressor
Signed-off-by: Maria Lisina <sekoohaka.sarisan@gmail.com>
Diffstat (limited to 'bot.zsh')
-rwxr-xr-xbot.zsh4
1 files changed, 1 insertions, 3 deletions
diff --git a/bot.zsh b/bot.zsh
index 6b2cf14..7876a6d 100755
--- a/bot.zsh
+++ b/bot.zsh
@@ -6,11 +6,9 @@
if (( __bot_env != 1 ))
then
- exec /usr/bin/env -i PATH="${PATH}" __bot_env=1 "${0}" ${@}
+ exec /usr/bin/env -i PATH="${PATH}" __bot_env=1 "${0}" ${@} 2> /dev/null
fi
-exec 2> /dev/null
-
set -e
umask 77