From f160fa72037c938a8fc125f5f9215508b8f6401d Mon Sep 17 00:00:00 2001 From: Slack Coder Date: Mon, 25 Mar 2024 17:33:42 -0500 Subject: Fix notification Use the correct filepath for update notifications. --- src/slack-autoupdate | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/slack-autoupdate b/src/slack-autoupdate index af6a902..a76f1da 100644 --- a/src/slack-autoupdate +++ b/src/slack-autoupdate @@ -204,14 +204,14 @@ if [ -z "$(find "$PACKAGE_DIR" -name "*.t*z" -or -name "info.txt" -or -name "err fi if [ "$NOTIFY" = "yes" ]; then - if [ -f "$UPDATE_ERROR" ]; then + if [ -f "/var/spool/slack-autoupdate/error.txt" ]; then echo "Failures were encountered while trying to download updates" echo "" - cat "$UPDATE_ERROR" - elif [ -f "$UPDATE_INFO" ]; then + cat "/var/spool/slack-autoupdate/error.txt" + elif [ -f "/var/spool/slack-autoupdate/info.txt" ]; then echo "Updates pending installation" echo "" - cat "$UPDATE_INFO" + cat "/var/spool/slack-autoupdate/info.txt" fi fi -- cgit v1.2.3