sequencer - fix missing newline for confirm() with one character when LOG_LEVEL=0
This commit is contained in:
@@ -643,7 +643,7 @@ confirm() {
|
||||
read -r -p "${1:-} ${inputHelp}" -n 1
|
||||
# Needed when read stops after one character (-n 1)
|
||||
# Add a newline only if input is not empty (just enter is pressed)
|
||||
[[ -z "$REPLY" ]] || sqr::echo ""
|
||||
[[ -z "$REPLY" ]] || printf '\n'
|
||||
else
|
||||
REPLY=''
|
||||
fi
|
||||
|
Reference in New Issue
Block a user