scripts/sounness check if swiftformat is installed

This commit is contained in:
Natik Gadzhi 2023-06-22 21:42:27 -07:00
parent d0bd9aac07
commit 9cccde4a4f
No known key found for this signature in database
GPG Key ID: E6387D41B53DEE06
1 changed files with 6 additions and 0 deletions

View File

@ -64,6 +64,12 @@ fi
printf "\033[0;32mokay.\033[0m\n"
printf "=> Checking format... "
if [[ ! -x $(which swiftformat) ]]; then
printf "\033[0;31mswiftformat not found!\033[0m\n"
exit 1
fi
FIRST_OUT="$(git status --porcelain)"
swiftformat . > /dev/null 2>&1
SECOND_OUT="$(git status --porcelain)"