-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathupdate.sh
55 lines (45 loc) · 1.72 KB
/
update.sh
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
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash
clear
echo -e "\e[1;92m[*] Checking for updates...\e[0m"
echo -e "\e[1;94m[++++++++++++++++++++++++++++++]\e[0m"
sleep 1
# Simulate checking for updates
echo -e "\n\e[1;93m[*] Looking for the latest version...\e[0m"
sleep 2
# Display update available message
echo -e "\e[1;92m[1] A new update is available! 🚀\e[0m"
sleep 1
printf "\n"
# Simulate downloading the update with a more detailed progress bar
echo -e "\e[1;96m[D] Fetching the latest version...\e[0m"
echo -n "[ ] 0%"; sleep 1
echo -ne "\r[##### ] 25%"; sleep 1
echo -ne "\r[########## ] 50%"; sleep 1
echo -ne "\r[############### ] 75%"; sleep 1
echo -ne "\r[####################] 100%\n"
sleep 1
# Simulate the installation with better visuals
echo -e "\e[1;93m[I] Installing update...\e[0m"
echo -n "[ ] 0%"; sleep 2
echo -ne "\r[##### ] 25%"; sleep 2
echo -ne "\r[########## ] 50%"; sleep 2
echo -ne "\r[############### ] 75%"; sleep 2
echo -ne "\r[####################] 100%\n"
sleep 1
# Finalizing update process
clear
echo -e "\e[1;92m[S] Update completed to the latest version! ✅\e[0m"
echo -e "\e[1;94m[+++++++++++++++++++++++++++++++++++++++++++++]\e[0m"
sleep 2
# Motivational quote after update
echo -e "\n\e[1;93m\"The best way to predict the future is to create it.\"\e[0m"
echo -e "\e[1;96m - Abraham Lincoln\e[0m"
sleep 2
# Displaying system info as a nice touch (optional)
echo -e "\n\e[1;90m[*] System Info:\e[0m"
echo -e "\e[1;37m$(uname -a)\e[0m" # Displaying system information
# Give users a final message
echo -e "\n\e[1;92m[NOTE] Restart your system to apply all changes properly.\e[0m"
echo -e "\e[1;96m[*] Thanks for using the script! 🚀\e[0m"
sleep 2
exit