Add haste-client

This commit is contained in:
Tobias Reisinger 2024-05-12 18:38:33 +02:00
parent a6e4ce98f0
commit 9e0e4ac61f
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
3 changed files with 8 additions and 5 deletions

View file

@ -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