Merge pull request #582 from pagdot/patch-1

Use fixed strings for grep patterns
This commit is contained in:
aptalca 2023-02-22 08:44:33 -05:00 committed by GitHub
commit 923768effe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,7 @@ else
if [ "${VAR_VALUE}" == "null" ]; then
VAR_VALUE=""
fi
if ! grep -q "${VAR}=\"${VAR_VALUE}\"" "/auto-proxy/${CONTAINER}.conf"; then
if ! grep -F -q "${VAR}=\"${VAR_VALUE}\"" "/auto-proxy/${CONTAINER}.conf"; then
AUTO_GEN="${CONTAINER} ${AUTO_GEN}"
echo "**** Labels for ${CONTAINER} changed, will generate new conf. ****"
break