1
0
Fork 0
mirror of https://github.com/yavook/kiwi-backup.git synced 2024-11-25 08:03:01 +00:00

webhook escape

This commit is contained in:
Jörn-Michael Miehe 2022-10-14 12:17:44 +02:00
parent aec18b0839
commit 16e3ac92d2

View file

@ -26,8 +26,8 @@ if [ -n "${WEBHOOK_URL}" ]; then
wget_args="--no-check-certificate"
fi
WEBHOOK_URL="$(echo "${WEBHOOK_URL}" | sed "s,%%MSG%%,running task ${*},g" )"
wget -O /dev/null ${wget_args} "${WEBHOOK_URL}"
WEBHOOK_URL="$(echo "${WEBHOOK_URL}" | sed "s,%%MSG%%,running%20task%20${*},g" )"
wget -O /dev/null ${wget_args} "${WEBHOOK_URL}" 1>/dev/null 2>/dev/null
fi
# hand over