scripts/image: cleanup ORIGIN_URL

This commit is contained in:
Rudi Heitbaum 2022-07-21 11:45:31 +00:00
parent 58a486b6a4
commit 634531533e

View File

@ -76,7 +76,7 @@ if [ "${LIBREELEC_VERSION}" = "devel" ]; then
fi
# Get origin url, fix git:// and git@github.com: urls if necessary
ORIGIN_URL="$(git remote -v | awk '$1 == "origin" { print $2 }' | head -1 | sed 's#\.git$##;s#^git:#https:#;s#^git@github\.com:#https://github.com/#')"
ORIGIN_URL="$(git remote -v | awk '$1 == "origin" { print $2 }' | head -1 | sed -e 's#\.git$##' -e 's#^git:#https:#' -e 's#^git@github\.com:#https://github.com/#' -e 's#://.*@#://#')"
[ "${BUILDER_NAME,,}" = "official" ] && BUILDER_NAME=
if [ "${OFFICIAL}" = "yes" ]; then