Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- user="someUser"
- pass="somePass"
- uri="http://sometld.org/path/repo.git"
- proto=$(echo $uri | awk -F"/" '{print $1}')
- domain=$(echo $uri | awk -F"/" '{print $3}')
- repo_path=$(echo $uri | awk -F"/" '{print $4}')
- repo_name=$(echo $uri | awk -F"/" '{print $5}')
- echo "$proto//$user:$pass@$domain/$repo_path/$repo_name"
- # http://someUser:somePass@sometld.org/path/repo.git
Add Comment
Please, Sign In to add comment