From 6ba6dd8def236c175c429cdb448cae7b9721955f Mon Sep 17 00:00:00 2001 From: Slack Coder Date: Mon, 25 Mar 2024 10:23:12 -0500 Subject: Improve sbotool for local overrides See comment in code. --- src/slack-autoupdate | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3