Compare commits

..

2 Commits

Author SHA1 Message Date
ray 59bad72913 remove sudo from pacman commands 2020-02-17 14:20:13 +00:00
ray 6e1b11fbf9 add README.md 2020-02-17 14:19:47 +00:00
2 changed files with 13 additions and 2 deletions

11
README.md Normal file
View File

@ -0,0 +1,11 @@
Notifies of available updates.
`pacman-update-count.sh` -- run as root to update available count.
`notify-updates` -- run to notify of available updates (gets value stored by `pacman=update-count.sh`).
```sh
# list options:
notify-updates --help
```

View File

@ -4,8 +4,8 @@ _updates_available="0"
_target_file="/tmp/pacman-update-count"
_user="ray"
sudo pacman -Sy
_query_output=$(sudo pacman -Qu)
pacman -Sy
_query_output=$(pacman -Qu)
# TODO - get update count from above
echo "$_query_output"