Skip to content

Commit

Permalink
Set dc_base_standalone empty if non-exist
Browse files Browse the repository at this point in the history
  • Loading branch information
aminvakil committed Mar 3, 2025
1 parent 2407398 commit 084833a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install/dc-detect-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ echo "${_group}Initializing Docker Compose ..."

# To support users that are symlinking to docker-compose
dc_base="$(docker compose version &>/dev/null && echo 'docker compose' || echo 'docker-compose')"
dc_base_standalone="$(docker-compose version &>/dev/null && echo 'docker-compose')"
dc_base_standalone="$(docker-compose version &>/dev/null && echo 'docker-compose' || echo '')"
if [[ "$(basename $0)" = "install.sh" ]]; then
dc="$dc_base --ansi never --env-file ${_ENV}"
else
Expand Down

0 comments on commit 084833a

Please sign in to comment.