Skip to content

Commit a8b54bd

Browse files
committed
Remove use of "TRAVIS_COMMIT_RANGE" variable
1 parent e87ad27 commit a8b54bd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.travis/check-pr-no-readme.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ set -Eeuo pipefail
44
cd "$(dirname "$(readlink -f "$BASH_SOURCE")")/.."
55

66
if [ "$TRAVIS_PULL_REQUEST" != 'false' ]; then
7-
if [ "$(git diff --numstat "$TRAVIS_COMMIT_RANGE" -- '*/README.md')" ]; then
7+
git fetch -q https://github.com/docker-library/docs.git master
8+
if [ -n "$(git diff --numstat FETCH_HEAD...HEAD -- '*/README.md')" ]; then
89
echo >&2 'Error: at least one repo README.md has changed'
910
echo >&2 'These files are autogenerated, so it is unnecessary to modify them'
1011
echo >&2 'Please update content.md and docker-library-bot will take care of README.md'

0 commit comments

Comments
 (0)