diff options
author | Slack Coder <slackcoder@server.ky> | 2024-03-25 17:33:42 -0500 |
---|---|---|
committer | Slack Coder <slackcoder@server.ky> | 2024-03-25 17:33:42 -0500 |
commit | f160fa72037c938a8fc125f5f9215508b8f6401d (patch) | |
tree | 5d90678dcc17eaca5ef13bad571a9c63c13a9641 /src | |
parent | 38a9350fb521828fb9638ea29ac68d5c1c2bc74c (diff) | |
download | slack-autoupdate-f160fa72037c938a8fc125f5f9215508b8f6401d.tar.xz |
Fix notification
Use the correct filepath for update notifications.
Diffstat (limited to 'src')
-rw-r--r-- | src/slack-autoupdate | 8 |
1 files changed, 4 insertions, 4 deletions
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 |