3752dd01ab
Signed-off-by: Will Hawkins <hawkinsw@obs.cr>
13 lines
197 B
Bash
Executable File
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 |