diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2008-06-01 21:56:24 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-06-01 21:56:24 +0200 |
commit | 750a51986b80015b95595b8d87a732a2cf8ca899 (patch) | |
tree | 9500eae94fa77b7f878938e62d53c93a10a90d4e /bin/pkg | |
parent | 762361539dc0b0c3bd0f15500b865752eac5a0e0 (diff) |
bin/pkg: confirm_yes: Write newline if needed
Diffstat (limited to 'bin/pkg')
-rwxr-xr-x | bin/pkg | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 { |