aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSlack Coder <slackcoder@server.ky>2024-03-25 10:23:12 -0500
committerSlack Coder <slackcoder@server.ky>2024-03-25 10:45:20 -0500
commit6ba6dd8def236c175c429cdb448cae7b9721955f (patch)
treeb6de196d8d3fed025a8c0fdad9241a5c4a8803db
parentb5ce47c155157269bc558ef1654aad5a84e79224 (diff)
downloadslack-autoupdate-6ba6dd8def236c175c429cdb448cae7b9721955f.tar.xz
Improve sbotool for local overrides
See comment in code.
-rw-r--r--src/slack-autoupdate6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/slack-autoupdate b/src/slack-autoupdate
index 30315df..f31bd99 100644
--- a/src/slack-autoupdate
+++ b/src/slack-autoupdate
@@ -154,7 +154,11 @@ if ! OUTPUT="$(
trap "rm -f ${PACKAGE_UPDATES}" EXIT
(sbocheck | tee $PACKAGE_UPDATES) || exit 1
- if grep -i "no updates available" "$PACKAGE_UPDATES"; then
+
+ # Avoid checking for 'no updates available'. It will not
+ # work if you host 'overrides' purposely different than what is
+ # on SBO.
+ if ! grep "needs updating" "$PACKAGE_UPDATES"; then
exit 0
fi