Skip to content

Commit 923768e

Browse files
authored
Merge pull request #582 from pagdot/patch-1
Use fixed strings for grep patterns
2 parents 407d0c8 + 24e32b2 commit 923768e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

root/app/auto-proxy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ else
1818
if [ "${VAR_VALUE}" == "null" ]; then
1919
VAR_VALUE=""
2020
fi
21-
if ! grep -q "${VAR}=\"${VAR_VALUE}\"" "/auto-proxy/${CONTAINER}.conf"; then
21+
if ! grep -F -q "${VAR}=\"${VAR_VALUE}\"" "/auto-proxy/${CONTAINER}.conf"; then
2222
AUTO_GEN="${CONTAINER} ${AUTO_GEN}"
2323
echo "**** Labels for ${CONTAINER} changed, will generate new conf. ****"
2424
break

0 commit comments

Comments
 (0)