Added timer

This commit is contained in:
Jake Howard 2016-02-09 23:28:58 +00:00
parent 6407d5d79d
commit f234d846b6

View file

@ -1,6 +1,6 @@
#!/usr/bin/env python3
import os
import os, time
from scripts.install_dotfiles import *
EXEC_ORDER = [
@ -22,9 +22,14 @@ EXEC_ORDER = [
if __name__ == '__main__':
t0 = "temp_time"
if os.geteuid() != 0:
print("Please run as root!")
elif input("Are you sure you want to install (allthethings)? [Y/N]: ").lower() == 'y':
t0 = time.time()
for script in EXEC_ORDER:
script()
print("\n>>{} Executed.\n".format(script.__name__))
print("\n>> {} Exe1cuted.\n".format(script.__name__))
t1 = time.time()
print("Execution Complete")
print("Took {} seconds.".format(t1 - t0))