diff --git a/scripts/image b/scripts/image index 44530696ca..f0a43f3591 100755 --- a/scripts/image +++ b/scripts/image @@ -44,10 +44,15 @@ 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/#')" +[ "${BUILDER_NAME,,}" = "official" ] && BUILDER_NAME= if [ "$OFFICIAL" = "yes" ]; then LIBREELEC_BUILD="official" else - LIBREELEC_BUILD="community" + if [ -n "$BUILDER_NAME" ]; then + LIBREELEC_BUILD="$BUILDER_NAME" + else + LIBREELEC_BUILD="community" + fi fi if [ -n "$CUSTOM_VERSION" ]; then