update check docker compose

Signed-off-by: yminer <miner.yang@broadcom.com>
This commit is contained in:
yminer 2024-10-22 17:54:58 +08:00
parent c14c3dbf9e
commit c9a0cb1dc1

View File

@ -103,7 +103,7 @@ function check_docker {
}
function check_dockercompose {
if [! docker compose version] &> /dev/null || [! docker-compose --version] &> /dev/null
if ! [docker compose version &> /dev/null] || ! [docker-compose --version &> /dev/null]
then
error "Need to install docker-compose(1.18.0+) or a docker-compose-plugin (https://docs.docker.com/compose/)by yourself first and run this script again."
exit 1