Skip to content

Commit 049efa2

Browse files
authored
Added minor code refactor for install script
1 parent cd5334b commit 049efa2

File tree

1 file changed

+4
-22
lines changed

1 file changed

+4
-22
lines changed

setup/install.py

Lines changed: 4 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,8 @@
1414
import time
1515
import subprocess
1616
from sys import stdout
17-
from colors import *
18-
19-
TIDOS_RULES = """
20-
_nnnn_
21-
dGGGGMMb
22-
@p~qp~~qMb {}TIDoS Rules!!!
23-
M(\033[37m@\033[96m)(\033[37m@\033[96m) M| {}_;
24-
@\033[33m,----.\033[96mJM| {}-'
25-
JS^\033[33m\__/ \033[96mqKL
26-
dZP qKRb
27-
dZP qKKb
28-
fZP SMMb
29-
HZM MMMM
30-
FqM MMMM
31-
\033[33m_| '. |\033[96mdS'qML'
32-
\033[33m| `. | `' \_\033[96mZq'
33-
\033[33m_) \.___.,| .'
34-
\033[33m\________)\033[96mMMMMM\033[33m| .'""".format(O, GR, GR)
17+
from core.Core.colors import *
18+
from core.Core.arts import tidosrules_art
3519

3620
def install():
3721

@@ -44,12 +28,10 @@ def install():
4428
time.sleep(1.5)
4529

4630
if os.geteuid() == 0:
47-
4831
print(G+" [!] No problems found.")
4932
print(G+" [!] Checkup complete. Launching the installer...")
5033

5134
else:
52-
5335
sys.exit(color.PURPLE+" [-] Run this script as ROOT !!!\033[0m")
5436
sys.exit()
5537
time.sleep(1)
@@ -62,10 +44,11 @@ def install():
6244
< TIDoS \033[1;36mInstaller!!\033[1;36m >
6345
---------------------------------"""
6446
print(header)
65-
for line in TIDOS_RULES.splitlines():
47+
for line in tidosrules_art.splitlines():
6648
if line:
6749
time.sleep(0.1)
6850
print(C + line)
51+
6952
time.sleep(0.1)
7053
print(color.BOLD+" \033[33m`--' "+color.END)
7154
time.sleep(0.7)
@@ -111,4 +94,3 @@ def install():
11194
except KeyboardInterrupt:
11295

11396
print(R+'\n [-] Installation aborted...\n')
114-

0 commit comments

Comments
 (0)