Added prompt to automated install
This commit is contained in:
parent
e96dd2aa23
commit
0af40bdabe
1 changed files with 9 additions and 8 deletions
|
@ -11,12 +11,13 @@ def get_functions():
|
|||
return ns
|
||||
|
||||
if __name__ == '__main__':
|
||||
waf_scripts = []
|
||||
for key, func in get_functions().items():
|
||||
if type(func).__name__ == 'function':
|
||||
waf_scripts.append(key)
|
||||
if input("Are you sure you want to install (allthethings)? [Y/N]: ").lower() == 'y':
|
||||
waf_scripts = []
|
||||
for key, func in get_functions().items():
|
||||
if type(func).__name__ == 'function':
|
||||
waf_scripts.append(key)
|
||||
|
||||
for func in waf_scripts:
|
||||
cmd = "waf {}".format(func)
|
||||
print("Running {}".format(cmd))
|
||||
os.system(cmd)
|
||||
for func in waf_scripts:
|
||||
cmd = "waf {}".format(func)
|
||||
print("Running {}".format(cmd))
|
||||
os.system(cmd)
|
||||
|
|
Loading…
Reference in a new issue