kiss: fix issue with OpenBSD Korn shell

This commit is contained in:
Dylan Araps 2021-06-28 09:46:28 +00:00
parent a25725530a
commit 5da3d06cea
1 changed files with 2 additions and 1 deletions

3
kiss
View File

@ -30,7 +30,8 @@ prompt() {
log "Continue?: Press Enter to continue or Ctrl+C to abort here"
[ "$KISS_PROMPT" = 0 ] || read -r _
# korn-shell does not exit on interrupt of read.
[ "$KISS_PROMPT" = 0 ] || read -r _ || exit 1
}
as_root() {