Skip to content

Commit

Permalink
Make version/openshift optional
Browse files Browse the repository at this point in the history
kubernetes doesn't have this path.
I hope this way the version/openshift/* files
will not even be created if 404 - untested.
  • Loading branch information
cben committed Jul 11, 2018
1 parent 9d61472 commit d923883
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/scrape.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ scrape ""
echo "====== Recorded version ====="
scrape "version"
result "version"
scrape "version/openshift"
result "version/openshift"
if scrape "version/openshift" --fail; then
result "version/openshift"
fi

echo "Iterating .paths from /"
for PTH in $(result "" | jq --raw-output '.paths[] | ltrimstr("/")'); do
Expand Down

0 comments on commit d923883

Please sign in to comment.