From d2450fa3eee8004f0ea590def02a1587e3f18710 Mon Sep 17 00:00:00 2001 From: longchair Date: Sun, 1 May 2016 17:41:23 +0200 Subject: [PATCH] image : allow distros to use a custom version and git hash --- scripts/image | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/image b/scripts/image index 1d21ddf5d1..b66ea2a052 100755 --- a/scripts/image +++ b/scripts/image @@ -54,6 +54,14 @@ else LIBREELEC_BUILD="community" fi +if [ -n "$CUSTOM_VERSION" ]; then + LIBREELEC_VERSION="$CUSTOM_VERSION" +fi + +if [ -n "$CUSTOM_GIT_HASH" ]; then + GIT_HASH="$CUSTOM_GIT_HASH" +fi + TARGET_VERSION="$PROJECT.$TARGET_ARCH-$LIBREELEC_VERSION" IMAGE_NAME="$DISTRONAME-$TARGET_VERSION" if [ "$DEVEL_VERSION" = "devel" ] ; then