diff --git a/scripts/image b/scripts/image index 38d57c47b3..282c5e9380 100755 --- a/scripts/image +++ b/scripts/image @@ -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