remove pacman stuff
This commit is contained in:
parent
69a62083fc
commit
f6797485fd
2 changed files with 1 additions and 32 deletions
|
@ -12,14 +12,7 @@ confirmcheck() {
|
|||
notify-send " Repository Sync" "Sync complete. No new packages for update."
|
||||
}
|
||||
|
||||
if command -v pacman 1>/dev/null 2>&1; then
|
||||
sudo pacman -Syyuw --noconfirm || notify-send "Error downloading updates." "Check your internet connection, if pacman is already running, or run update manually to see errors."
|
||||
if pacman -Qu | grep -v "\[ignored\]"; then
|
||||
askupgrade
|
||||
else
|
||||
confirmcheck
|
||||
fi
|
||||
elif command -v apt 1>/dev/null 2>&1; then
|
||||
if command -v apt 1>/dev/null 2>&1; then
|
||||
n=$(sudo apt upgrade -dy 2>/dev/null | grep -m1 '^[0-9]\+ upgraded,' | tr -cd '0-9' | cut -c1-2)
|
||||
if [ "$n" = '' ]; then
|
||||
notify-send "Error downloading updates." "Check your internet connection, if apt is already running, or run update manually to see errors."
|
||||
|
|
|
@ -3,30 +3,6 @@
|
|||
BOLD='\033[1m'
|
||||
BLUE='\033[34m'
|
||||
NC='\033[0m'
|
||||
# This pkill is already handled by apt/pacman hooks:
|
||||
# pkill -RTMIN+8 "${STATUSBAR:-dwmblocks}"
|
||||
|
||||
# pacman --------------------------------------------------------------------------
|
||||
# create the file /usr/share/libalpm/hooks/statusbar.hook containing the following
|
||||
|
||||
# [Trigger]
|
||||
# Operation = Upgrade
|
||||
# Type = Package
|
||||
# Target = *
|
||||
# [Action]
|
||||
# Description = Updating statusbar...
|
||||
# When = PostTransaction
|
||||
# Exec = /usr/bin/pkill -RTMIN+8 dwmblocks
|
||||
|
||||
printf "%b" "$BOLD${BLUE}Beginning upgrade.$NC\n"
|
||||
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
|
||||
|
||||
# apt -----------------------------------------------------------------------------
|
||||
# create the file /etc/apt/apt.conf.d/80statusbar containing the following
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue