2022-07-04 21:36:33 +02:00
|
|
|
#!/bin/sh
|
2023-02-09 14:49:10 +01:00
|
|
|
|
2022-07-04 21:36:33 +02:00
|
|
|
printf "Beginning upgrade.\\n"
|
2023-02-09 14:49:10 +01:00
|
|
|
if command -v paru 1>/dev/null 2>&1; then
|
|
|
|
paru -Syu
|
|
|
|
elif command -v yay 1>/dev/null 2>&1; then
|
|
|
|
yay -Syu
|
|
|
|
elif command -v pacman 1>/dev/null 2>&1; then
|
|
|
|
pacman -Syu
|
|
|
|
fi
|
|
|
|
|
|
|
|
command -v apt 1>/dev/null 2>&1 && sudo apt upgrade
|
|
|
|
|
2022-07-04 21:36:33 +02:00
|
|
|
pkill -RTMIN+8 "${STATUSBAR:-dwmblocks}"
|
2023-02-09 14:49:10 +01:00
|
|
|
printf "\\nUpgrade complete.\\nPress <Enter> to exit window.\\n\\n"
|
|
|
|
read -r _
|