-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhypr_mac.py
More file actions
42 lines (37 loc) · 1.01 KB
/
hypr_mac.py
File metadata and controls
42 lines (37 loc) · 1.01 KB
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
35
36
37
38
39
40
41
42
import subprocess
command = [
"brew install mas",
"mas upgrade",
"clear",
"echo _",
"echo | |",
"echo | |__ _ _ _ __ _ __",
"echo | '_ \\| | | | '_ \\| '__|",
"echo | | | | |_| | |_) | |",
"echo |_| |_|\\__,_| .__/|_|",
"echo __/ | |",
"echo |___/|_|",
"echo"
]
for code in command:
subprocess.run(code, shell=True)
confirm = input("Enter yay to provide confirmation for auto-update process > ")
done = [
"echo",
"echo If the cursor is blinking, it indicates the program is actively searching for updates, not frozen.",
"echo",
"echo [Press 'Control + C' to force stop any update.]",
"echo",
"brew update",
"brew upgrade",
"brew upgrade --cask",
"brew cleanup",
"brew autoremove",
'read -n 1 -s -r -p "Press any key to continue..."'
]
if confirm == "yay":
for work in done:
subprocess.run(work, shell=True)
else:
print("closing the terminal...")
subprocess.run("exit", shell=True)