File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 88
99COMPOSE_FILES=(" compose.yaml" " compose.healthcheck.yaml" )
1010
11+ # If --no-dev is passed to this script, we won't load the compose.dev.yaml file,
12+ # but this argument should be removed so it isn't passed to docker compose.
1113if [ " $1 " == " --no-dev" ]; then
12- # ensure --no-dev parameter isn't passed to docker compose
14+ # Remove the " --no-dev" argument so it isn't passed to docker compose
1315 shift 1
1416else
17+ # The "--no-dev" argument wasn't passed in, so let's load the dev config.
1518 COMPOSE_FILES+=(" compose.dev.yaml" )
1619fi
1720
18- # We create an array including files prefixed with -f here
19- # to ensure paths with spaces aren't split when passed as parameters
21+ # Loop over the list of compose files, and prefix them with -f.
22+ # This ensures paths with spaces aren't split when passed as parameters.
2023COMPOSE_FILES_PREFIXED=()
2124for file in " ${COMPOSE_FILES[@]} " ; do
2225 COMPOSE_FILES_PREFIXED+=(" -f" " $file " )
You can’t perform that action at this time.
0 commit comments