docker-php-extension-installer/scripts/invoke-shfmt

30 lines
440 B
Plaintext
Raw Normal View History

2019-12-20 18:44:45 +01:00
#!/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/test-restore-apt \
2020-02-02 16:17:49 +01:00
scripts/ci-test-extensions \
scripts/ci-update-readme \
2019-12-20 18:44:45 +01:00
scripts/update-readme