-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsupdate.sh
executable file
·46 lines (36 loc) · 910 Bytes
/
supdate.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
#!/bin/bash
##
# Update system across multiple package managers
#
printf "\n 🚀 Initializing system update...\n"
if command -v apt >/dev/null 2>&1; then
printf "\n 🍕 apt\n"
sudo apt update && sudo apt full-upgrade
if [[ -f ~/code/scripts/update_zoom.sh ]]; then
printf "\n update_zoom.sh\n"
~/code/scripts/update_zoom.sh
fi
fi
if command -v brew >/dev/null 2>&1; then
printf "\n 🍺 brew\n"
brew update
brew upgrade
fi
if command -v paru >/dev/null 2>&1; then
printf "\n 👾 paru\n"
paru -Syu
elif command -v pacman >/dev/null 2>&1; then
printf "\n 👾 pacman\n"
sudo pacman -Syu
fi
if command -v flatpak >/dev/null 2>&1; then
printf "\n 📦 flatpak\n"
flatpak update
fi
if command -v snap >/dev/null 2>&1; then
printf "\n ❇️ snap\n"
sudo snap refresh
fi
if [[ -f /var/run/reboot-required ]]; then
printf "\n 🔄 Reboot required.\n\n"
fi