Skip to content

Commit

Permalink
Merge pull request #617 from s1061123/fix/check-tty
Browse files Browse the repository at this point in the history
Conditional check for tty/non-tty in case of wait (i.e. read)
  • Loading branch information
dougbtv committed Feb 25, 2021
2 parents 02ad030 + de463cc commit c1166d2
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 c1166d2

Please sign in to comment.