Change syntax due to shell
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Danny Bessems 2022-07-31 19:59:02 +02:00
parent 652a1fed72
commit eb207a5ba1
1 changed files with 1 additions and 3 deletions

View File

@ -15,9 +15,7 @@ steps:
image: bv11-cr01.bessems.eu/proxy/alpine/curl
commands:
- |
#!/bin/bash
if [[ $(curl -s -o /dev/null -w "%{http_code}" https://code.spamasaurus.com/api/v1/packages/$GIT_USERNAME/generic/skopeo/$SKOPEO_VERSION) -ne '200']]; then
if [ $(curl -s -o /dev/null -w "%{http_code}" https://code.spamasaurus.com/api/v1/packages/$GIT_USERNAME/generic/skopeo/$SKOPEO_VERSION) != '200']; then
exit 0
else
exit 1