Fix shfmt invocation
parent
f9195cda3d
commit
6393e6819c
|
@ -11,7 +11,7 @@ echo '# Linting shell scripts'
|
|||
if ! docker --version >/dev/null 2>/dev/null; then
|
||||
echo 'Docker is not installed, or it is not running.' >&2
|
||||
rc=1
|
||||
elif ! docker run --rm -v "$SRC_DIR:/src" -w /src --entrypoint /src/scripts/invoke-shfmt mvdan/shfmt:v3.3.1 fix; then
|
||||
elif ! docker run --rm -v "$SRC_DIR:/src" -w /src --entrypoint /src/scripts/invoke-shfmt mvdan/shfmt:v3.3.1-alpine fix; then
|
||||
echo 'ERROR!' >&2
|
||||
rc=1
|
||||
fi
|
||||
|
|
|
@ -16,7 +16,7 @@ if errorlevel 1 (
|
|||
echo Docker is not installed, or it's not running >&2
|
||||
set rc=1
|
||||
) else (
|
||||
docker run --rm -v "%SRC_DIR%:/src" -w /src --entrypoint /src/scripts/invoke-shfmt mvdan/shfmt:v3.3.1 fix
|
||||
docker run --rm -v "%SRC_DIR%:/src" -w /src --entrypoint /src/scripts/invoke-shfmt mvdan/shfmt:v3.3.1-alpine fix
|
||||
if errorlevel 1 (
|
||||
echo ERROR! >&2
|
||||
set rc=1
|
||||
|
|
Loading…
Reference in New Issue