2019-12-20 17:44:45 +00: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"
|
|
|
|
;;
|
|
|
|
*)
|
2020-02-21 12:10:49 +00:00
|
|
|
printf 'Syntax: %s <check|fix>' "$0" >&2
|
2019-12-20 17:44:45 +00:00
|
|
|
exit 1
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
shfmt $PARAMS \
|
|
|
|
install-php-extensions \
|
2020-02-21 12:10:49 +00:00
|
|
|
scripts/ci-filter-supported-extensions \
|
|
|
|
scripts/ci-retrieve-recent-extensions \
|
|
|
|
scripts/ci-test-extensions \
|
2019-12-20 17:44:45 +00:00
|
|
|
scripts/common \
|
|
|
|
scripts/invoke-shfmt \
|
|
|
|
scripts/lint \
|
2020-01-23 12:48:18 +00:00
|
|
|
scripts/test-restore-apt \
|
2019-12-20 17:44:45 +00:00
|
|
|
scripts/update-readme
|