From 69590e1348ca5698f48c3ad9751932e82104019e Mon Sep 17 00:00:00 2001 From: Hari Sekhon Date: Sun, 6 Dec 2020 23:28:14 +0000 Subject: [PATCH] updated teamcity_buildtype_set_description_from_github.sh --- teamcity_buildtype_set_description_from_github.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teamcity_buildtype_set_description_from_github.sh b/teamcity_buildtype_set_description_from_github.sh index 658a71ab..aaa55192 100755 --- a/teamcity_buildtype_set_description_from_github.sh +++ b/teamcity_buildtype_set_description_from_github.sh @@ -50,7 +50,7 @@ for id in $vcs_root_ids; do shopt -s nocasematch if [[ "$url" =~ ^https://github.com/ ]]; then vcs_root_id="$id" - repo="${url#https://github.com/}" + repo="$(perl -pne 's|^https://github.com/||i' <<< "$url")" fi shopt -u nocasematch done