diff options
author | Slack Coder <slackcoder@server.ky> | 2024-03-26 08:59:22 -0500 |
---|---|---|
committer | Slack Coder <slackcoder@server.ky> | 2024-03-26 08:59:22 -0500 |
commit | 7f8b00fbffcb89c6168962df797413956d2e62bc (patch) | |
tree | 3229466f2a0f51b7b19d2671918654695a55098a /src | |
parent | 37155fc791f1af0e81255e0f49aff33fa9ff10b1 (diff) | |
download | slack-autoupdate-7f8b00fbffcb89c6168962df797413956d2e62bc.tar.xz |
fixup! Fix update notification
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 86ca9e9..8bb1637 100644 --- a/src/slack-autoupdate +++ b/src/slack-autoupdate @@ -193,14 +193,14 @@ if [ -z "$(find "$STAGING_DIR" -name "*.t*z" -or -name "info.txt" -or -name "err fi if [ "$NOTIFY" = "yes" ]; then - if [ -f "/var/spool/slack-autoupdate/error.txt" ]; then + if [ -f "$UPDATE_ERROR" ]; then echo "Failures were encountered while trying to download updates" echo "" - cat "/var/spool/slack-autoupdate/error.txt" - elif [ -f "/var/spool/slack-autoupdate/info.txt" ]; then + cat "$UPDATE_ERROR" + elif [ -f "$UPDATE_INFO" ]; then echo "Updates pending installation" echo "" - cat "/var/spool/slack-autoupdate/info.txt" + cat "$UPDATE_INFO" fi fi |