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

if [ -f ~/.cache/pacsynclive ]; then
  echo "syncing"
  exit
fi
if [ -f ~/.cache/pacupgradelive ]; then
  echo "installing"
  exit
fi

upno=$(pacman -Qu | wc -l)

if [ $upno -gt 0 ]; then
  echo $upno
fi