diff --git a/curl.it b/curl.it index 35dd195..bd2b744 100755 --- a/curl.it +++ b/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