26 lines
927 B
Bash
Executable file
26 lines
927 B
Bash
Executable file
#!/bin/sh
|
|
|
|
BOLD='\033[1m'
|
|
BLUE='\033[34m'
|
|
NC='\033[0m'
|
|
# apt -----------------------------------------------------------------------------
|
|
# create the file /etc/apt/apt.conf.d/80statusbar containing the following
|
|
|
|
# DPkg::Post-Invoke {"/usr/bin/pkill -RTMIN+8 dwmblocks";};
|
|
|
|
command -v apt 1>/dev/null 2>&1 && sudo apt upgrade
|
|
|
|
|
|
|
|
# void ----------------------------------------------------------------------------
|
|
# Void doesn't have post-install hooks at all, and including pkills in the package hooks isn't feasible
|
|
# Instead pkill is called in this script. Manually running updates will cause the status bar to desync
|
|
|
|
command -v xbps-install 1>/dev/null 2>&1 && sudo xbps-install -Syu && pkill -RTMIN+8 "${STATUSBAR:-dwmblocks}"
|
|
|
|
printf "%b" "$BOLD${BLUE}Updating arkenfox...$NC\n"
|
|
"$DOTS_DIR/.local/share/firefox/updater.sh" -b
|
|
|
|
printf "%b" "$BOLD${BLUE}Upgrade complete.\nPress <Enter> to exit window.\n"
|
|
read -r _
|
|
exit
|