mirror of
https://gitlab.com/fabinfra/fabaccess/bffh.git
synced 2024-12-27 06:03:49 +01:00
13 lines
230 B
Plaintext
13 lines
230 B
Plaintext
|
#!/usr/bin/env bash
|
||
|
|
||
|
echo -e "Checking code formatting:\n=========================\n\n" 1>&2
|
||
|
|
||
|
cargo fmt --check
|
||
|
|
||
|
if [[ $? -ne 0 ]]
|
||
|
then
|
||
|
o=$?
|
||
|
echo -e "\n\nRun \`cargo fmt --all\` before pushing please." 1>&2
|
||
|
exit $o
|
||
|
fi
|