mirror of
https://github.com/mlocati/docker-php-extension-installer
synced 2025-05-09 00:22:40 +00:00
Simplify linting
This commit is contained in:
parent
04989ff86d
commit
e5541c42a5
4 changed files with 36 additions and 27 deletions
28
scripts/invoke-shfmt
Executable file
28
scripts/invoke-shfmt
Executable file
|
@ -0,0 +1,28 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -o errexit
|
||||
set -o nounset
|
||||
|
||||
PARAMS='-s -ln posix -i 0 -ci -kp'
|
||||
|
||||
case "${1:-}" in
|
||||
check)
|
||||
PARAMS="$PARAMS -d"
|
||||
;;
|
||||
fix)
|
||||
PARAMS="$PARAMS -w"
|
||||
;;
|
||||
*)
|
||||
fprintf 'Syntax: %s <check|fix>' "$0" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
shfmt $PARAMS \
|
||||
install-php-extensions \
|
||||
scripts/common \
|
||||
scripts/invoke-shfmt \
|
||||
scripts/lint \
|
||||
scripts/travisci-test-extensions \
|
||||
scripts/travisci-update-readme \
|
||||
scripts/update-readme
|
Loading…
Add table
Add a link
Reference in a new issue