From 336c144b0eed83d27e77111b15f78515e1979540 Mon Sep 17 00:00:00 2001 From: TheScarastic Date: Fri, 30 Jun 2023 11:23:34 +0000 Subject: [PATCH] docker: Make branch match more explicit --- build-community.sh | 14 +++++++------- src/build.sh | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/build-community.sh b/build-community.sh index f6c41c3..5616c79 100755 --- a/build-community.sh +++ b/build-community.sh @@ -84,32 +84,32 @@ for branch in ${BRANCH_NAME//,/ }; do if [ -n "$branch" ] && [ -n "$devices" ]; then vendor=lineage case "$branch" in - *nougat*) + v*-nougat*) vendor="cm" themuppets_branch="cm-14.1" android_version="7.1.2" ;; - *oreo*) + v*-oreo*) themuppets_branch="lineage-15.1" android_version="8.1" ;; - *pie*) + v*-pie*) themuppets_branch="lineage-16.0" android_version="9" ;; - *q*) + v*-q*) themuppets_branch="lineage-17.1" android_version="10" ;; - *r*) + v*-r*) themuppets_branch="lineage-18.1" android_version="11" ;; - *s*) + v*-s*) themuppets_branch="lineage-19.1" android_version="12" ;; - *t*) + v*-t*) themuppets_branch="lineage-20.0" android_version="13" ;; diff --git a/src/build.sh b/src/build.sh index ca2ee1c..92cd053 100755 --- a/src/build.sh +++ b/src/build.sh @@ -40,34 +40,34 @@ branch_dir=${branch_dir^^} if [ -n "${BRANCH_NAME}" ] && [ -n "${DEVICE}" ]; then vendor=lineage case "$BRANCH_NAME" in - *nougat*) + v*-nougat*) vendor="cm" themuppets_branch="cm-14.1" android_version="7.1.2" use_openjdk_from_ubuntu=true ;; - *oreo*) + v*-oreo*) themuppets_branch="lineage-15.1" android_version="8.1" use_openjdk_from_ubuntu=true ;; - *pie*) + v*-pie*) themuppets_branch="lineage-16.0" android_version="9" ;; - *q*) + v*-q*) themuppets_branch="lineage-17.1" android_version="10" ;; - *r*) + v*-r*) themuppets_branch="lineage-18.1" android_version="11" ;; - *s*) + v*-s*) themuppets_branch="lineage-19.1" android_version="12" ;; - *t*) + v*-t*) themuppets_branch="lineage-20.0" android_version="13" ;; -- GitLab