From de463cca0d83f098f2a3740c2609b822032739d3 Mon Sep 17 00:00:00 2001 From: Tomofumi Hayashi Date: Thu, 25 Feb 2021 08:48:12 +0900 Subject: [PATCH] Conditional check for tty/non-tty in case of wait (i.e. read) Fix #615. --- images/entrypoint.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/images/entrypoint.sh b/images/entrypoint.sh index eea14b92b..329d4c71c 100755 --- a/images/entrypoint.sh +++ b/images/entrypoint.sh @@ -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