github.com/cilium/cilium@v1.16.2/Documentation/check-crdlist.sh (about) 1 #!/usr/bin/env bash 2 3 set -o errexit 4 set -o nounset 5 set -o pipefail 6 7 script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" 8 target_file="${script_dir}/crdlist.rst" 9 10 if ! git diff --quiet -- "$target_file" ; then 11 git --no-pager diff -- "$target_file" 12 echo "HINT: to fix this, run 'make -C Documentation update-crdlist'" 13 exit 1 14 fi