diff --git a/script/format b/script/format index c07e94ca..b40336b3 100755 --- a/script/format +++ b/script/format @@ -17,9 +17,9 @@ fi printf $'==> 🚨 Formatting mas %s\n' "$(script/version)" -for linter in markdownlint prettier shfmt swift-format swiftformat swiftlint yamllint; do - if [[ ! -x "$(command -v "${linter}")" ]]; then - printf $'error: %s is not installed. Run \'script/bootstrap\' or \'brew install %s\'.\n' "${linter}" "${linter}" >&2 +for formatter in markdownlint prettier shfmt swift-format swiftformat swiftlint yamllint; do + if [[ ! -x "$(command -v "${formatter}")" ]]; then + printf $'error: %s is not installed. Run \'script/bootstrap\' or \'brew install %s\'.\n' "${formatter}" "${formatter}" >&2 exit 1 fi done