From 08d3c891372881387b47c081d31652286d469429 Mon Sep 17 00:00:00 2001 From: ray Date: Mon, 17 Feb 2020 14:22:13 +0000 Subject: [PATCH 1/2] refix typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e5d5460..6e732a7 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ 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 `update-count.sh`). +`notify-updates` -- run to notify of available updates (gets value stored by `pacman-update-count.sh`). ```sh # list options: From 7caf5b168c466a1524f84d28f039b867b245f9ca Mon Sep 17 00:00:00 2001 From: ray Date: Mon, 17 Feb 2020 14:24:16 +0000 Subject: [PATCH 2/2] output results of update check to stdout --- pacman-update-count.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/pacman-update-count.sh b/pacman-update-count.sh index b3eb8f2..6cb9850 100755 --- a/pacman-update-count.sh +++ b/pacman-update-count.sh @@ -16,5 +16,6 @@ if ! [ "$_updates_available" -eq "$_updates_available" ] 2> /dev/null ; then _updates_available="-1" fi +echo "Adding $_updates_available available updates to $_target_file" echo "$_updates_available" > "$_target_file" chown "$_user": "$_target_file"