ab74cef1 | #!/bin/bash |
a2913dfd | source "$(dirname "${BASH_SOURCE}")/lib/init.sh" |
ab74cef1 | |
a2913dfd | os::util::ensure::built_binary_exists 'origin-version-change' |
ab74cef1 | IGNORE_FILES={$IGNORE_FILES:-"examples/sample-app/github-webhook-example.json"} |
e8440d95 | sample_files=$(find {api,examples,docs,images,plugins,test} -name "*.json" -o -name "*.yaml") |
ab74cef1 | ignore_arr=(${IGNORE_FILES//,/ }) for f in $sample_files; do if [[ $ignore_arr =~ $f ]]; then echo "-> Skipping '$f'" else echo "-> Processing '$f' ..." origin-version-change -r "$f" fi done |