diff options
author | Luke Smith <luke@lukesmith.xyz> | 2020-02-09 08:18:32 -0500 |
---|---|---|
committer | Luke Smith <luke@lukesmith.xyz> | 2020-02-09 08:18:32 -0500 |
commit | f9b31cbd9951dd4b383f3446975fa4f5af24dbca (patch) | |
tree | d1d1bdd69004ef712e105051fa24ed197b9fd03c /bin | |
parent | 27ac8c6aa9af0bc93c5f39981a3c2f008c2945cc (diff) |
must type full yes
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/mw | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -255,8 +255,8 @@ finalize() { \ return 0 } -confirm() { printf "Do you want to %s? [y/N]\\n\t" "$@" && read -r input && ! echo "$input" | grep -i "^y$\|^yes$" >/dev/null && printf "That doesn't seem like a yes to me.\\n\\n" && return 1 - printf "Are you really, really sure you want to %s?\\n\t" "$@" && read -r input && ! echo "$input" | grep -i "^y$\|^yes$" >/dev/null && printf "That doesn't seem like a yes to me.\\n\\n" && return 1 +confirm() { printf "Do you want to %s? [yes/N]\\n\t" "$@" && read -r input && ! echo "$input" | grep -i "^yes$" >/dev/null && printf "That doesn't seem like a yes to me.\\n\\n" && return 1 + printf "Are you really, really sure you want to %s?\\n\t" "$@" && read -r input && ! echo "$input" | grep -i "^yes$" >/dev/null && printf "That doesn't seem like a yes to me.\\n\\n" && return 1 return 0 ;} pick() { printf "Select an accounts to %s:\\n" "$1" |