mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 22:37:14 +08:00
993cbf9db0
This uses the standard go vendor location instead of old Godeps location. Also remove usage of symlink GOPATH. Since our README mentions that you should build it inside GOPATH, i think its a reasonable to assume that you dont need to create a tmp GOPATH. Signed-off-by: Daniel Dao <dqminh89@gmail.com>
22 lines
430 B
Bash
Executable File
22 lines
430 B
Bash
Executable File
#!/bin/bash
|
|
|
|
badFiles=()
|
|
while read f; do
|
|
badFiles+=("$f")
|
|
done < <(shfmt -l . | grep -v vendor/)
|
|
|
|
if [ ${#badFiles[@]} -eq 0 ]; then
|
|
echo 'Congratulations! All shell source files are properly formatted.'
|
|
else
|
|
{
|
|
echo "These files are not properly shfmt'd:"
|
|
for f in "${badFiles[@]}"; do
|
|
echo " - $f"
|
|
done
|
|
echo
|
|
echo 'Please reformat the above files using "shfmt -w" and commit the result.'
|
|
echo
|
|
} >&2
|
|
false
|
|
fi
|