mirror of
https://github.com/danog/docker-php-extension-installer.git
synced 2024-12-11 17:09:51 +01:00
17 lines
377 B
Bash
Executable File
17 lines
377 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -o errexit
|
|
set -o nounset
|
|
|
|
if ! docker --version >/dev/null 2>/dev/null; then
|
|
printf 'Docker is not installed, or it is not running\n' >&2
|
|
exit 1
|
|
fi
|
|
|
|
SRC_DIR="$(CDPATH= cd -- "$(dirname -- "$0")" && cd .. pwd)"
|
|
|
|
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
|