From 1db81d604142dc5fc687850a646dbee194a693d8 Mon Sep 17 00:00:00 2001 From: sky42 Date: Fri, 14 Sep 2018 23:06:13 +0200 Subject: [PATCH] scripts: image: show BUILDER_NAME in System Information and LE settings --- scripts/image | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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