Add haste-client
This commit is contained in:
parent
a6e4ce98f0
commit
9e0e4ac61f
3 changed files with 8 additions and 5 deletions
|
@ -11,10 +11,10 @@ url="$(git remote get-url origin)"
|
|||
re="^(https|git)(:\/\/|@)([^\/:]+)[\/:]([^\/:]+)\/(.+)(.git)*$"
|
||||
|
||||
if [[ $url =~ $re ]]; then
|
||||
#protocol=${BASH_REMATCH[1]}
|
||||
#separator=${BASH_REMATCH[2]}
|
||||
#hostname=${BASH_REMATCH[3]}
|
||||
user=${BASH_REMATCH[4]}
|
||||
#protocol=${BASH_REMATCH[1]}
|
||||
#separator=${BASH_REMATCH[2]}
|
||||
#hostname=${BASH_REMATCH[3]}
|
||||
user=${BASH_REMATCH[4]}
|
||||
repo=$(basename -s .git "${BASH_REMATCH[5]}")
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue