Merge pull request #617 from s1061123/fix/check-tty

Conditional check for tty/non-tty in case of wait (i.e. read)
This commit is contained in:
Doug Smith 2021-02-25 10:22:17 -05:00 committed by GitHub
commit c1166d2d3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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