diff --git a/lgsm/functions/alert_email.sh b/lgsm/functions/alert_email.sh index 7057ebf93..73704b5ab 100644 --- a/lgsm/functions/alert_email.sh +++ b/lgsm/functions/alert_email.sh @@ -6,7 +6,7 @@ local commandname="ALERT" local commandaction="Alert" -local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" +local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" fn_print_dots "Sending Email alert: ${email}" sleep 0.5 diff --git a/lgsm/functions/alert_ifttt.sh b/lgsm/functions/alert_ifttt.sh index f3f6a9cf6..8aa253ada 100644 --- a/lgsm/functions/alert_ifttt.sh +++ b/lgsm/functions/alert_ifttt.sh @@ -6,7 +6,7 @@ local commandname="ALERT" local commandaction="Alert" -local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" +local function_selfname="$(basename "$(readlink -f "${BASH_SOURCE[0]}")")" json=$(cat <