* windows adjust docker cmd for update composer script

This commit is contained in:
toxa
2023-01-29 12:26:48 +03:00
parent 0bbc4eedd7
commit 7de00f8385
3 changed files with 5 additions and 37 deletions

View File

@ -1,4 +1,8 @@
#!/bin/bash
. ./_docker-cmd.sh || {
echo "no docker cmd is presented" && exit 1
}
PHP_VERSION=$1 # Without dot
COMPOSER_VERSION=$2
@ -15,4 +19,4 @@ if [[ -z "${COMPOSER_VERSION}" ]]; then
COMPOSER_VERSION=1
fi
docker exec -ti "${CONTAINER}" composer self-update --${COMPOSER_VERSION}
$DOCKER_CMD exec -ti "${CONTAINER}" composer self-update --${COMPOSER_VERSION}