#!/bin/bash

git fetch origin master

if [[ ${TRAVIS_PULL_REQUEST_BRANCH} ]] && ! [[ $(git diff HEAD..master -- CHANGELOG.md) ]] && ! [[ $TRAVIS_PULL_REQUEST_BRANCH == 'master' ]]
then
    echo "On branch $TRAVIS_PULL_REQUEST_BRANCH"
    echo "Remember to change the change log"
    exit 1
fi
#!/bin/bash

git fetch origin master

if [[ ${TRAVIS_PULL_REQUEST_BRANCH} ]] && ! [[ $(git diff HEAD..master -- CHANGELOG.md) ]]
then
    echo "On branch $TRAVIS_PULL_REQUEST_BRANCH"
    echo "Remember to change the change log"
    exit 1
fi
Remove redundant check in script
feat: Remove redundant check in script
