Skip to content

Commit d08a6d9

Browse files
authored
Add --short to docker-compose version (#3605)
1 parent e86d185 commit d08a6d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

install/dc-detect-version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ echo "${_group}Initializing Docker Compose ..."
1010

1111
# To support users that are symlinking to docker-compose
1212
dc_base="$(docker compose version --short &>/dev/null && echo 'docker compose' || echo '')"
13-
dc_base_standalone="$(docker-compose version &>/dev/null && echo 'docker-compose' || echo '')"
13+
dc_base_standalone="$(docker-compose version --short &>/dev/null && echo 'docker-compose' || echo '')"
1414

1515
COMPOSE_VERSION=$([ -n "$dc_base" ] && $dc_base version --short || echo '')
1616
STANDALONE_COMPOSE_VERSION=$([ -n "$dc_base_standalone" ] && $dc_base_standalone version --short &>/dev/null || echo '')

0 commit comments

Comments
 (0)