Skip to content
This repository was archived by the owner on Nov 30, 2023. It is now read-only.

Commit 72aff92

Browse files
authored
Make azure dns auto detection variable quoted in comparison (#1670)
1 parent 185bc76 commit 72aff92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

script-library/docker-in-docker-debian.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ find_version_from_git_tags() {
9696
local repository=$2
9797
local prefix=${3:-"tags/v"}
9898
local separator=${4:-"."}
99-
local last_part_optional=${5:-"false"}
99+
local last_part_optional=${5:-"false"}
100100
if [ "$(echo "${requested_version}" | grep -o "." | wc -l)" != "2" ]; then
101101
local escaped_separator=${separator//./\\.}
102102
local last_part
@@ -370,7 +370,7 @@ dockerd_start="$(cat << 'INNEREOF'
370370
# Handle DNS
371371
set +e
372372
cat /etc/resolv.conf | grep -i 'internal.cloudapp.net'
373-
if [ $? -eq 0 ] && [ ${AZURE_DNS_AUTO_DETECTION} = "true" ]
373+
if [ $? -eq 0 ] && [ "${AZURE_DNS_AUTO_DETECTION}" = "true" ]
374374
then
375375
echo "Setting dockerd Azure DNS."
376376
CUSTOMDNS="--dns 168.63.129.16"

0 commit comments

Comments
 (0)