Skip to content

Commit aee5334

Browse files
committed
Scope var instead of unsetting
1 parent c835949 commit aee5334

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

root/app/update-mods.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ find_docker_mods() {
66
if [[ "${2}" != "default" ]]; then
77
docker context create "${2}" --docker "host=${1}" >/dev/null 2>&1
88
fi
9-
docker --context "${2}" ps -q >/dev/null 2>&1 || DOCKER_MOD_CONTEXT_FAIL=true
9+
docker --context "${2}" ps -q >/dev/null 2>&1 || local DOCKER_MOD_CONTEXT_FAIL=true
1010
if [[ "${DOCKER_MOD_CONTEXT_FAIL}" == "true" ]]; then
11-
unset DOCKER_MOD_CONTEXT_FAIL
1211
echo "[mod-init] (ERROR) Cannot connect to the Docker daemon at ${2}, skipping host"
1312
return
1413
fi

0 commit comments

Comments
 (0)