-
Notifications
You must be signed in to change notification settings - Fork 1
/
pull.py
executable file
·34 lines (29 loc) · 954 Bytes
/
pull.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/env python
import subprocess
import os
# Colors the text
class colors:
PURPL = '\033[95m'
BLUE = '\033[94m'
GREEN = '\033[92m'
YELLOW = '\033[93m'
RED = '\033[91m'
WHITE = '\033[0m'
BOLD = '\033[1m'
UNDERLINE = '\033[4m'
# CMD FUNCTION - for running shell scripts
def cmd(cmd):
os.system(cmd)
##########################
# COMMANDS TO EXECUTE
##########################
# update setup routine
cmd('wget https://raw.githubusercontent.com/glennlopez/qdGit/stable/setup.sh && rm -f setup.sh.1 && rm -f setup.sh && wget https://raw.githubusercontent.com/glennlopez/qdGit/stable/setup.sh && chmod +x setup.sh')
# pull routine
cmd('clear')
print colors.BOLD + "Github Pull Script" + colors.WHITE
print colors.GREEN + "[!] " + colors.WHITE + "Synchronizing with github..."
cmd('git pull')
print
print colors.YELLOW + "[!] Routine complete:" + colors.WHITE + " check the logs above for more info."
# end of script