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
|
return ns
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
waf_scripts = []
|
if input("Are you sure you want to install (allthethings)? [Y/N]: ").lower() == 'y':
|
||||||
for key, func in get_functions().items():
|
waf_scripts = []
|
||||||
if type(func).__name__ == 'function':
|
for key, func in get_functions().items():
|
||||||
waf_scripts.append(key)
|
if type(func).__name__ == 'function':
|
||||||
|
waf_scripts.append(key)
|
||||||
|
|
||||||
for func in waf_scripts:
|
for func in waf_scripts:
|
||||||
cmd = "waf {}".format(func)
|
cmd = "waf {}".format(func)
|
||||||
print("Running {}".format(cmd))
|
print("Running {}".format(cmd))
|
||||||
os.system(cmd)
|
os.system(cmd)
|
||||||
|
|
Loading…
Reference in a new issue