We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f64934a commit 4f4b65aCopy full SHA for 4f4b65a
1 file changed
lib/shared.bash
@@ -114,9 +114,19 @@ function docker_compose_config_files() {
114
return
115
fi
116
117
+ # If COMPOSE_PATH_SEPARATOR is not set, use the default separator
118
+ SEPARATOR="${COMPOSE_PATH_SEPARATOR:-}"
119
+ if [ -z ${SEPARATOR} ]; then
120
+ if is_windows ; then
121
+ SEPARATOR=";"
122
+ else
123
+ SEPARATOR=":"
124
+ fi
125
126
+
127
# Process any (deprecated) colon delimited config paths
128
for value in "${config_files[@]}" ; do
- echo "$value" | tr ':' '\n'
129
+ echo "$value" | tr "${SEPARATOR}" '\n'
130
done
131
}
132
0 commit comments