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
|
#!/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
|
||||||
|
Loading…
Reference in New Issue
Block a user