mirror of
https://github.com/elliotnunn/tbxi.git
synced 2024-09-29 04:54:46 +00:00
Fix interactive confirmation
This commit is contained in:
parent
f9b17f0369
commit
9f8b423994
@ -54,8 +54,8 @@ def build_path(p):
|
|||||||
# Does the filename match?
|
# Does the filename match?
|
||||||
if sib.name.startswith(name) and 'patch' in sib.name[len(name):]:
|
if sib.name.startswith(name) and 'patch' in sib.name[len(name):]:
|
||||||
# This is a bit unsafe, so prompt the user (to pipe in `yes`...)
|
# This is a bit unsafe, so prompt the user (to pipe in `yes`...)
|
||||||
if input('Apply %s to %s? [y/N]' % (sib.name, name)).lower().startswith('y'):
|
if input('Apply %s to %s? [y/N] ' % (sib.name, name)).lower().startswith('y'):
|
||||||
result = run([sib.path], cwd=parent, stdin=data, stdout=PIPE, check=True)
|
result = run([sib.path], cwd=parent, input=data, stdout=PIPE, check=True)
|
||||||
data = result.stdout
|
data = result.stdout
|
||||||
|
|
||||||
return data
|
return data
|
||||||
|
Loading…
Reference in New Issue
Block a user