daily pastebin goal
55%
SHARE
TWEET

Untitled

a guest Jun 14th, 2018 51 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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\" }"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top