diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-10-21 00:35:13 +0200 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2023-10-21 00:35:13 +0200 |
commit | c3c4b8c6b4556e01770a75da4b6fbf8e1eba9ce4 (patch) | |
tree | 006d8799585d86557e570f03af93b112a079a697 /bin/extra/confirm | |
parent | 39a6cea6f2f198aa08189d345e0281a591d17ec4 (diff) | |
parent | 3d253cd428e2769e0449fbf0c3ece5c0ab41545c (diff) |
Merge branch 'main' of db:dotfiles
Diffstat (limited to 'bin/extra/confirm')
-rwxr-xr-x | bin/extra/confirm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/extra/confirm b/bin/extra/confirm index 116b468..630d701 100755 --- a/bin/extra/confirm +++ b/bin/extra/confirm @@ -5,8 +5,8 @@ read_char () old_stty_cfg=$(stty -g 2> /dev/null) stty raw -echo 2> /dev/null dd ibs=1 count=1 2> /dev/null - stty $old_stty_cfg 2> /dev/null + stty "$old_stty_cfg" 2> /dev/null } ->&2 printf "$1 " +>&2 printf "%s " "$1" read_char | grep -q "[yY]" |