fix check which wasn't working in docker started from ci

This commit is contained in:
einhornimmond 2025-05-22 08:42:20 +02:00
parent be8342183c
commit bd431cd7ea

View File

@ -102,11 +102,11 @@ TODAY=$(date +"%Y-%m-%d")
\cp $SCRIPT_DIR/nginx/update-page/updating.html.template $UPDATE_HTML
# store real console stream in fd 3
if [ -e /dev/tty ]; then
# on normal systems
if test -t 1; then
# stdout is a TTY - normal console
exec 3> /dev/tty
else
# on docker
# stdout is not a TTY - probably Docker or CI
exec 3> /proc/$$/fd/1
fi
# redirect all output of the script to the UPDATE_HTML