fix: exactly the oposite was needed
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
4aad65f9e4
commit
bf93ba2eac
6
curl.it
6
curl.it
@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ $# -lt 2 ]; then
|
||||
curl -s -H 'Content-Type: application/json' --data '{"docker_tag":"nightly"}' -X POST $1
|
||||
if [ $# -gt 1 ]; then
|
||||
curl -s -H 'Content-Type: application/json' --data '{"docker_tag":"nightly"}' -X POST $2
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user