Skip to content

Commit

Permalink
Prevent globbing in some cases
Browse files Browse the repository at this point in the history
  • Loading branch information
zevilz committed Feb 8, 2023
1 parent be6e8c5 commit 3ed0264
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions telegram.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ zbxApiAuth()
\"id\": 1,
\"auth\": null
}
" $ZABBIX_API_URL 2>/dev/null
" "$ZABBIX_API_URL" 2>/dev/null
)

if ! [ -z "$ZABBIX_AUTH" ]; then
Expand Down Expand Up @@ -128,7 +128,7 @@ zbxApiGetGraphId()
\"auth\": \"$ZABBIX_AUTH_TOKEN\",
\"id\": 1
}
" $ZABBIX_API_URL 2>/dev/null
" "$ZABBIX_API_URL" 2>/dev/null
)

if ! [ -z "$ZABBIX_GRAPH" ]; then
Expand Down Expand Up @@ -280,7 +280,7 @@ tlgResult()
pushToLog()
{
if [[ $# -eq 1 ]]; then
echo -e "[$(date +%Y-%m-%d\ %H:%M:%S)] Zabbix Telegram alertscript: $1" >> $SCRIPT_LOG_PATH
echo -e "[$(date +%Y-%m-%d\ %H:%M:%S)] Zabbix Telegram alertscript: $1" >> "$SCRIPT_LOG_PATH"
fi
}

Expand Down

0 comments on commit 3ed0264

Please sign in to comment.