We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f98ee92 + 66fba6f commit e866adbCopy full SHA for e866adb
scripts/publish-gh-pages.sh
@@ -46,7 +46,9 @@ echo waiting for the new release to appear in github
46
attempts=60
47
sleep_time=10
48
for (( i=0; i<${attempts}; i++ )); do
49
- count=$(curl -s https://snyk.github.io/kubernetes-monitor/snyk-monitor/values.yaml | grep --line-buffered -c "tag: ${NEW_TAG}")
+ # Notice we must use "|| :" at the end of grep because when it doesn't find a match
50
+ # it returns an exit code 1, which trips this script (it has "set -e").
51
+ count=$(curl -s https://snyk.github.io/kubernetes-monitor/snyk-monitor/values.yaml | grep --line-buffered -c "tag: ${NEW_TAG}" || :)
52
if [[ "$count" == "1" ]]; then
53
attempts=${i}
54
break
0 commit comments