16 lines
550 B
Bash
Executable File
16 lines
550 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -Eeuo pipefail
|
|
|
|
cd "$(dirname "$(readlink -f "$BASH_SOURCE")")/.."
|
|
|
|
if [ "$TRAVIS_PULL_REQUEST" != 'false' ]; then
|
|
if [ "$(git diff --numstat "$TRAVIS_COMMIT_RANGE" -- '*/README.md')" ]; then
|
|
echo >&2 'Error: at least one repo README.md has changed'
|
|
echo >&2 'These files are autogenerated, so it is unnecessary to modify them'
|
|
echo >&2 'Please update content.md and docker-library-bot will take care of README.md'
|
|
echo >&2 'See: https://github.com/docker-library/docs/#image-namereadmemd'
|
|
echo >&2
|
|
exit 1
|
|
fi
|
|
fi
|