From 350409756d0b6bb882cdc0596b78b3db634bac85 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 13 Dec 2022 13:58:10 +0000 Subject: [PATCH] Moved notification message --- scripts/epicyon-notification | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/epicyon-notification b/scripts/epicyon-notification index 644210bf6..b3df2e865 100755 --- a/scripts/epicyon-notification +++ b/scripts/epicyon-notification @@ -260,15 +260,15 @@ function notifications { fi # send notifications for moved accounts to XMPP/email users - epicyonMovedFile="$epicyonDir/.newMoved" - if [ -f "$epicyonMovedFile" ]; then + epicyonMovedFile="${epicyonDir}/.newMoved" + if [ -f "${epicyonMovedFile}" ]; then if ! grep -q "##sent##" "$epicyonMovedFile"; then epicyonMovedMessage=$(notification_translate_text 'has moved to') epicyonMovedFrom=$(cat "$epicyonMovedFile" | awk -F ' ' '{print $1}') epicyonMovedTo=$(cat "$epicyonMovedFile" | awk -F ' ' '{print $2}') epicyonMovedUrl=$(cat "$epicyonMovedFile" | awk -F ' ' '{print $3}') epicyonMovedLink="${epicyonMovedTo}" - epicyonMovedFileContent=$("$(echo "$epicyonMovedFrom")" "$(echo "$epicyonMovedMessage")" "$(echo "$epicyonMovedLink")") + epicyonMovedFileContent=$($(echo "$epicyonMovedFrom")" "$(echo "$epicyonMovedMessage")" "$(echo "$epicyonMovedLink")) if [[ "$epicyonMovedFileContent" == *':'* ]]; then epicyonMovedMessage="Epicyon: $epicyonMovedFileContent" fi