Fixed up port removal so it works

This commit is contained in:
Michael Taboada 2023-05-26 07:20:38 -07:00
parent 8434b851e8
commit 564835b4ac

View File

@ -7,7 +7,7 @@ url="${2#*@}"
url="${url%.git}"
url="${url#*://}"
shopt -s extglob
url="${url/:([0-9]+)//}"
url="${url/:+([0-9])/}"
url="https://${url}"
branch="$(git branch | grep "\* ")"
branch="${branch:2}"