Skip to content

Commit

Permalink
Conditional check for tty/non-tty in case of wait (i.e. read)
Browse files Browse the repository at this point in the history
Fix #615.
  • Loading branch information
s1061123 committed Feb 25, 2021
1 parent 02ad030 commit de463cc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion images/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -418,5 +418,9 @@ if [ "$MULTUS_CLEANUP_CONFIG_ON_EXIT" == true ]; then
done
else
log "Entering sleep (success)..."
read
if tty -s; then
read
else
sleep infinity
fi
fi

0 comments on commit de463cc

Please sign in to comment.