mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-02-23 01:46:17 -05:00
11 lines
208 B
Text
11 lines
208 B
Text
|
|
#!/bin/bash
|
||
|
|
|
||
|
|
if [[ "$(grep -c "# then delete this line" $1)" == "1" ]]; then
|
||
|
|
echo "Unresolved gofmt errors. Aborting commit."
|
||
|
|
echo "The message of your attempted commit was:"
|
||
|
|
cat $1
|
||
|
|
exit 1
|
||
|
|
fi
|
||
|
|
|
||
|
|
exit 0
|