mirror of https://github.com/apache/kafka.git
MINOR: Modify release.py prompt to only accept y/n
This commit is contained in:
parent
c9d01dbbf8
commit
1b98aee9dc
|
@ -162,6 +162,8 @@ def regexReplace(path, pattern, replacement):
|
|||
|
||||
def user_ok(msg):
|
||||
ok = raw_input(msg)
|
||||
while ok.strip() not in ('y', 'n'):
|
||||
ok = raw_input("Please enter either 'y' or 'n': ")
|
||||
return ok.strip().lower() == 'y'
|
||||
|
||||
def sftp_mkdir(dir):
|
||||
|
|
Loading…
Reference in New Issue