Added timer
This commit is contained in:
parent
6407d5d79d
commit
f234d846b6
1 changed files with 7 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
import os
|
import os, time
|
||||||
from scripts.install_dotfiles import *
|
from scripts.install_dotfiles import *
|
||||||
|
|
||||||
EXEC_ORDER = [
|
EXEC_ORDER = [
|
||||||
|
@ -22,9 +22,14 @@ EXEC_ORDER = [
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
t0 = "temp_time"
|
||||||
if os.geteuid() != 0:
|
if os.geteuid() != 0:
|
||||||
print("Please run as root!")
|
print("Please run as root!")
|
||||||
elif input("Are you sure you want to install (allthethings)? [Y/N]: ").lower() == 'y':
|
elif input("Are you sure you want to install (allthethings)? [Y/N]: ").lower() == 'y':
|
||||||
|
t0 = time.time()
|
||||||
for script in EXEC_ORDER:
|
for script in EXEC_ORDER:
|
||||||
script()
|
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))
|
||||||
|
|
Loading…
Reference in a new issue