From 6e1b11fbf9f129bf81f56a88790ae2d8d5cf9f6b Mon Sep 17 00:00:00 2001 From: ray Date: Mon, 17 Feb 2020 14:19:47 +0000 Subject: [PATCH 1/2] add README.md --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 README.md 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 +``` From 59bad72913a248aaf2b9dabbb47985d16a532ef5 Mon Sep 17 00:00:00 2001 From: ray Date: Mon, 17 Feb 2020 14:20:13 +0000 Subject: [PATCH 2/2] remove sudo from pacman commands --- pacman-update-count.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"