Advertisement
Guest User

Untitled

a guest
Jun 14th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. if [ "$#" -ne 3 ]; then
  4. echo "Usage: $0 GITLAB_URL API_TOKEN REPO_NAME" >&2
  5. echo "For example: $0 your.gitlab.com yoursecrettoken a-cool-repo"
  6. exit 1
  7. fi
  8.  
  9. GITLAB_URL=$1
  10. API_TOKEN=$2
  11. REPO_NAME=$3
  12.  
  13. curl -v -H "Content-Type:application/json" $GITLAB_URL/api/v3/projects?private_token=$API_TOKEN -d "{ \"name\": \"$REPO_NAME\" }"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement