mirror of
https://github.com/mlocati/docker-php-extension-installer
synced 2025-05-09 00:22:40 +00:00
Use official shfmt docker image
This commit is contained in:
parent
e5541c42a5
commit
5f6fbb81fc
3 changed files with 2 additions and 13 deletions
|
@ -10,12 +10,7 @@ fi
|
|||
|
||||
SRC_DIR="$(CDPATH= cd -- "$(dirname -- "$0")" && cd .. pwd)"
|
||||
|
||||
if ! docker build -t docker-php-extension-installer-shfmt:latest -f scripts/Dockerfile-shfmt -q .; then
|
||||
printf 'ERROR!' >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! docker run --rm -v "$SRC_DIR:/src" -w /src docker-php-extension-installer-shfmt:latest ./scripts/invoke-shfmt fix; then
|
||||
if ! docker run --rm -v "$SRC_DIR:/src" -w /src --entrypoint /src/scripts/invoke-shfmt mvdan/shfmt:latest fix; then
|
||||
printf 'ERROR!' >&2
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue