build.sh: fix stripping of .git

This commit is contained in:
Alexander Sosedkin 2021-06-26 18:39:45 +02:00
parent 97c209fe4b
commit cda90321ef

View file

@ -109,7 +109,7 @@ for arch in $arches; do
elif [[ $url =~ https://github.com/* ]]; then elif [[ $url =~ https://github.com/* ]]; then
autodetected_repository=${url##https://github.com} autodetected_repository=${url##https://github.com}
fi fi
if [[ $autodetected_repository =~ *.git ]]; then if [[ $autodetected_repository =~ \.git ]]; then
autodetected_repository=${autodetected_repository%%.git} autodetected_repository=${autodetected_repository%%.git}
fi fi
echo $arch: autodetected repository: $autodetected_repository echo $arch: autodetected repository: $autodetected_repository