fix: exactly the oposite was needed
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
surtur 2020-06-03 23:05:31 +02:00
parent 4aad65f9e4
commit bf93ba2eac
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
if [ $# -lt 2 ]; then if [ $# -gt 1 ]; then
curl -s -H 'Content-Type: application/json' --data '{"docker_tag":"nightly"}' -X POST $1 curl -s -H 'Content-Type: application/json' --data '{"docker_tag":"nightly"}' -X POST $2
else else
curl -s -H 'Content-Type: application/json' --data '{"docker_tag":"latest"}' -X POST $2 curl -s -H 'Content-Type: application/json' --data '{"docker_tag":"latest"}' -X POST $1
fi fi