Skip to content

Commit f535158

Browse files
authored
Merge pull request #123 from Entepotenz/main
fix some shellcheck warnings
2 parents afb2c8b + 90a8f3d commit f535158

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docker-entrypoint

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ APPRISE_URL=${APPRISE_URL:-""}
1313

1414
# only use unix domain socket if no TCP endpoint is defined
1515
case "${DOCKER_SOCK}" in
16-
"tcp://"*) HTTP_ENDPOINT="$(echo ${DOCKER_SOCK} | sed 's#tcp://#http://#')"
16+
"tcp://"*) HTTP_ENDPOINT="$(echo "${DOCKER_SOCK}" | sed 's#tcp://#http://#')"
1717
;;
18-
"tcps://"*) HTTP_ENDPOINT="$(echo ${DOCKER_SOCK} | sed 's#tcps://#https://#')"
18+
"tcps://"*) HTTP_ENDPOINT="$(echo "${DOCKER_SOCK}" | sed 's#tcps://#https://#')"
1919
CA="--cacert /certs/ca.pem"
2020
CLIENT_KEY="--key /certs/client-key.pem"
2121
CLIENT_CERT="--cert /certs/client-cert.pem"
@@ -81,13 +81,13 @@ notify_webhook() {
8181
if [ -n "$WEBHOOK_URL" ]
8282
then
8383
# execute webhook requests as background process to prevent healer from blocking
84-
curl -s -X POST -H "Content-type: application/json" -d "$(generate_webhook_payload $text)" $WEBHOOK_URL
84+
curl -s -X POST -H "Content-type: application/json" -d "$(generate_webhook_payload $text)" "$WEBHOOK_URL"
8585
fi
8686

8787
if [ -n "$APPRISE_URL" ]
8888
then
8989
# execute webhook requests as background process to prevent healer from blocking
90-
curl -s -X POST -H "Content-type: application/json" -d "$(generate_apprise_payload $text)" $APPRISE_URL
90+
curl -s -X POST -H "Content-type: application/json" -d "$(generate_apprise_payload $text)" "$APPRISE_URL"
9191
fi
9292
}
9393

0 commit comments

Comments
 (0)