Conditional check for tty/non-tty in case of wait (i.e. read)

Fix #615.
This commit is contained in:
Tomofumi Hayashi
2021-02-25 08:48:12 +09:00
parent 02ad030899
commit de463cca0d

View File

@@ -418,5 +418,9 @@ if [ "$MULTUS_CLEANUP_CONFIG_ON_EXIT" == true ]; then
done done
else else
log "Entering sleep (success)..." log "Entering sleep (success)..."
read if tty -s; then
read
else
sleep infinity
fi
fi fi