sequencer - fix missing newline for confirm() with one character when LOG_LEVEL=0

This commit is contained in:
2022-06-01 15:08:07 +02:00
parent d2071090bc
commit 0f428a01d9

View File

@@ -643,7 +643,7 @@ confirm() {
read -r -p "${1:-} ${inputHelp}" -n 1 read -r -p "${1:-} ${inputHelp}" -n 1
# Needed when read stops after one character (-n 1) # Needed when read stops after one character (-n 1)
# Add a newline only if input is not empty (just enter is pressed) # Add a newline only if input is not empty (just enter is pressed)
[[ -z "$REPLY" ]] || sqr::echo "" [[ -z "$REPLY" ]] || printf '\n'
else else
REPLY='' REPLY=''
fi fi