aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.local/bin/pacupgrade
blob: aa00575e340e50ce235557212e41792d95835ede (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

# This is just a wrapper script to upgrade system AND update status bar module

# Don't try to sync if pacman is already running
if pidof pacman; then
  echo "pacman is already running"
  exit
fi

touch ~/.cache/pacupdatelive
killall -41 waybar

sudo pacman -Syu

rm -f ~/.cache/pacupdatelive
killall -41 waybar