diff --git a/README.md b/README.md new file mode 100644 index 0000000..11c7aa9 --- /dev/null +++ b/README.md @@ -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 +``` diff --git a/pacman-update-count.sh b/pacman-update-count.sh index 9e6e013..b3eb8f2 100755 --- a/pacman-update-count.sh +++ b/pacman-update-count.sh @@ -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"