mirror of
https://github.com/stretchr/testify.git
synced 2025-05-31 11:42:44 +00:00
Fix shebang in .ci.*.sh scripts to ease running on platforms where bash is not in /bin/bash (ex: MacOS).
13 lines
416 B
Bash
Executable File
13 lines
416 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# Verify that the code snippets in README.md are formatted.
|
|
# The tool https://github.com/hougesen/mdsf is used.
|
|
|
|
if [ -n "$(mdsf verify --config .mdsf.json --log-level error README.md 2>&1)" ]; then
|
|
echo "Go code in the README.md is not formatted."
|
|
echo "Did you forget to run 'mdsf format --config .mdsf.json README.md'?"
|
|
mdsf format --config .mdsf.json README.md
|
|
git diff
|
|
exit 1
|
|
fi
|