Skip to content

Commit b58ff37

Browse files
committed
Correct shellcheck quotes with minor refactoring
1 parent 6ceb7fc commit b58ff37

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

lib/shared.bash

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -115,14 +115,12 @@ function docker_compose_config_files() {
115115
fi
116116

117117
# 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
118+
if is_windows ; then
119+
DEFAULT_SEPARATOR=";"
120+
else
121+
DEFAULT_SEPARATOR=":"
125122
fi
123+
SEPARATOR="${COMPOSE_PATH_SEPARATOR:-$DEFAULT_SEPARATOR}"
126124

127125
# Process any (deprecated) colon delimited config paths
128126
for value in "${config_files[@]}" ; do

0 commit comments

Comments
 (0)