Skip to content

Commit 5a5f4cd

Browse files
committed
Log if no mods are found in a context
1 parent 777322b commit 5a5f4cd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

root/app/update-mods.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
find_docker_mods() {
55
# Mods provided via Docker
66
if [[ "${2}" != "default" ]]; then
7-
MOD_STATE="(${2})"
7+
local MOD_STATE="(${2})"
88
docker context create "${2}" --docker "host=${1}" >/dev/null 2>&1
99
fi
1010
docker --context "${2}" ps -q >/dev/null 2>&1 || local DOCKER_MOD_CONTEXT_FAIL=true
@@ -27,6 +27,8 @@ find_docker_mods() {
2727
DOCKER_MODS="${DOCKER_MODS#|}"
2828
fi
2929
done
30+
else
31+
echo -e "[mod-init] ${MOD_STATE:+${MOD_STATE} }No mods found in the ${2} context"
3032
fi
3133
done
3234
if [[ "${2}" != "default" ]]; then

0 commit comments

Comments
 (0)