Skip to content

Commit

Permalink
Simplify zsh scripts.
Browse files Browse the repository at this point in the history
Partial #638

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
  • Loading branch information
rgoldberg committed Dec 13, 2024
1 parent eaef248 commit 782d529
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion script/format
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
printf $'==> 🚨 Formatting mas %s\n' "$(script/version)"

for formatter in markdownlint prettier swift-format swiftformat swiftlint yamllint; do
if [[ ! -x "$(command -v "${formatter}")" ]]; then
if ! command -v "${formatter}" >/dev/null; then
printf $'error: %s is not installed. Run \'script/bootstrap\' or \'brew install %s\'.\n' "${formatter}" "${formatter}" >&2
exit 1
fi
Expand Down
2 changes: 1 addition & 1 deletion script/lint
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ printf $'==> 🚨 Linting mas %s\n' "$(script/version)"
script/generate_version_info_for_swift

for linter in git markdownlint periphery shellcheck swift-format swiftformat swiftlint yamllint; do
if [[ ! -x "$(command -v "${linter}")" ]]; then
if ! command -v "${linter}" >/dev/null; then
printf $'error: %s is not installed. Run \'script/bootstrap\' or \'brew install %s\'.\n' "${linter}" "${linter}" >&2
exit 1
fi
Expand Down

0 comments on commit 782d529

Please sign in to comment.