From cda90321ef1243dd00c545e3e527f6fd3db4c4ed Mon Sep 17 00:00:00 2001 From: Alexander Sosedkin Date: Sat, 26 Jun 2021 18:39:45 +0200 Subject: [PATCH] build.sh: fix stripping of .git --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 34ed36b..edab9ea 100755 --- a/build.sh +++ b/build.sh @@ -109,7 +109,7 @@ for arch in $arches; do elif [[ $url =~ https://github.com/* ]]; then autodetected_repository=${url##https://github.com} fi - if [[ $autodetected_repository =~ *.git ]]; then + if [[ $autodetected_repository =~ \.git ]]; then autodetected_repository=${autodetected_repository%%.git} fi echo $arch: autodetected repository: $autodetected_repository