summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-04-21 14:28:53 -0400
committerLuke Smith <luke@lukesmith.xyz>2019-04-21 14:28:53 -0400
commit09c4bf1b86953b719d74085305351447f67cd83d (patch)
treeafffdfd872ee6b64b08eeb65ea98c1580fcae570
parent1395863f8fcfd95b4a4684c669224c422a8fdb3a (diff)
yes fix
-rwxr-xr-xmw2
1 files changed, 1 insertions, 1 deletions
diff --git a/mw b/mw
index fbf6901..ae02924 100755
--- a/mw
+++ b/mw
@@ -219,7 +219,7 @@ finalize() { \
[ "$accounttype" = "offline" ] && printf "All done.\\n\033[33mYou should now be able to run \`\033[32mmbsync %s\033[33m\` to begin to download your mail.\033[0m\\n" "$title"
}
-confirm() { printf "Do you want to 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 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
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
return 0 ;}