Skip to content
Browse files

cmd_receive: treat 'quit' or other non- yes/no answers as "no"

So "yes" or "Yes" or "y" or "Y" or anything else that starts with y/Y means
yes, and a bare newline means yes, but anything else means no.
  • Loading branch information...
warner committed May 30, 2019
1 parent e2c6789 commit 58cf584fb0db60648061ef71106064efdca77c38
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/wormhole/cli/
@@ -370,7 +370,7 @@ def _ask_permission(self):
with self.args.timing.add("permission", waiting="user") as t:
while True and not self.args.accept_file:
ok = six.moves.input("ok? (Y/n): ")
if not ok.lower().startswith("n"):
if ok.lower().startswith("y") or len(ok) == 0:
if os.path.exists(self.abs_destname):

0 comments on commit 58cf584

Please sign in to comment.
You can’t perform that action at this time.