Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- set -e
- URI=$1
- REPO=$(basename $1)
- REPO="${REPO%.*}"
- GITHUB_USERNAME=$(basename $(dirname $1))
- GITHUB_USERNAME=${GITHUB_USERNAME##*:}
- # e.g
- # github-clone git@github.com:rubygems/rubygems.org.git
- # Will clone the repository to rubygems/rubygems.
- git clone $URI $GITHUB_USERNAME/$REPO
Add Comment
Please, Sign In to add comment