Files
gp4/ci/format.sh
T
Will Hawkins 3752dd01ab Add Formatting To CI/CD
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
2026-02-24 01:00:32 -05:00

13 lines
197 B
Bash
Executable File

#!/bin/bash
# Format
swift format --recursive -i Sources/ 2>&1 >/dev/null
# Modified count
mc=`git status . | grep modified | wc -l | sed 's/ //g'`
if [ ${mc} -ne 0 ]; then
exit 1
fi
exit 0