Compare commits

..

2 Commits

Author SHA1 Message Date
ray 7caf5b168c output results of update check to stdout 2020-02-17 14:24:16 +00:00
ray 08d3c89137 refix typo 2020-02-17 14:22:13 +00:00
2 changed files with 2 additions and 1 deletions

View File

@ -2,7 +2,7 @@ Notifies of available updates.
`pacman-update-count.sh` -- run as root to update available count. `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 ```sh
# list options: # list options:

View File

@ -16,5 +16,6 @@ if ! [ "$_updates_available" -eq "$_updates_available" ] 2> /dev/null ; then
_updates_available="-1" _updates_available="-1"
fi fi
echo "Adding $_updates_available available updates to $_target_file"
echo "$_updates_available" > "$_target_file" echo "$_updates_available" > "$_target_file"
chown "$_user": "$_target_file" chown "$_user": "$_target_file"