From 750a51986b80015b95595b8d87a732a2cf8ca899 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 1 Jun 2008 21:56:24 +0200 Subject: bin/pkg: confirm_yes: Write newline if needed --- bin/pkg | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/pkg b/bin/pkg index 5197074..2a19e62 100755 --- a/bin/pkg +++ b/bin/pkg @@ -30,6 +30,7 @@ die () { confirm_yes () { echo -n "$* [Y/n] " read -k 1 + [ $REPLY != $'\n' ] && echo if ([ "$REPLY" = 'y' -o "$REPLY" = 'Y' -o "$REPLY" = $'\n' ]) { true } else { -- cgit v1.2.3