Skip to content

Commit

Permalink
Merge branch 'pr331'
Browse files Browse the repository at this point in the history
closes #330
  • Loading branch information
warner committed May 30, 2019
2 parents 293893e + 58cf584 commit ab00f8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wormhole/cli/cmd_receive.py
Expand Up @@ -369,8 +369,8 @@ def _remove_existing(self, path):
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 ok.lower().startswith("y"):
ok = six.moves.input("ok? (Y/n): ")
if ok.lower().startswith("y") or len(ok) == 0:
if os.path.exists(self.abs_destname):
self._remove_existing(self.abs_destname)
break
Expand Down

0 comments on commit ab00f8e

Please sign in to comment.