aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorSlack Coder <slackcoder@server.ky>2024-03-25 17:33:42 -0500
committerSlack Coder <slackcoder@server.ky>2024-03-25 17:33:42 -0500
commitf160fa72037c938a8fc125f5f9215508b8f6401d (patch)
tree5d90678dcc17eaca5ef13bad571a9c63c13a9641 /src
parent38a9350fb521828fb9638ea29ac68d5c1c2bc74c (diff)
downloadslack-autoupdate-f160fa72037c938a8fc125f5f9215508b8f6401d.tar.xz
Fix notification
Use the correct filepath for update notifications.
Diffstat (limited to 'src')
-rw-r--r--src/slack-autoupdate8
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