2021-05-26 09:19:54 -07:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2022-07-12 08:07:59 -07:00
|
|
|
set -euo pipefail
|
|
|
|
|
2022-12-23 02:40:11 -07:00
|
|
|
# check .sh files
|
2023-03-20 22:06:57 -07:00
|
|
|
shfmt --language-dialect posix --indent 2 --diff \
|
|
|
|
lib/*.sh
|
2022-12-23 02:40:11 -07:00
|
|
|
|
|
|
|
# check .bash files
|
|
|
|
shfmt --language-dialect bash --indent 2 --diff \
|
|
|
|
completions/*.bash \
|
|
|
|
bin/asdf \
|
|
|
|
bin/private/asdf-exec \
|
|
|
|
lib/utils.bash \
|
|
|
|
lib/commands/*.bash \
|
|
|
|
lib/functions/*.bash \
|
|
|
|
scripts/*.bash \
|
|
|
|
test/test_helpers.bash \
|
|
|
|
test/fixtures/dummy_broken_plugin/bin/* \
|
|
|
|
test/fixtures/dummy_legacy_plugin/bin/* \
|
|
|
|
test/fixtures/dummy_plugin/bin/*
|
|
|
|
|
|
|
|
# check .bats files
|
|
|
|
shfmt --language-dialect bats --indent 2 --diff \
|
|
|
|
test/*.bats
|