From d1adeef7564b52a000b349f24f16c781a5071d37 Mon Sep 17 00:00:00 2001 From: Philip Nagler-Frank Date: Fri, 18 Mar 2022 11:06:04 +0100 Subject: [PATCH] be more flexible when removing LineageOS build logic which reverts custom build type --- src/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/build.sh b/src/build.sh index 6bfdb41..163882d 100755 --- a/src/build.sh +++ b/src/build.sh @@ -238,7 +238,7 @@ for branch in ${BRANCH_NAME//,/ }; do fi echo ">> [$(date)] Setting \"$RELEASE_TYPE\" as release type" - sed -i "/\$(filter .*\$(${vendor^^}_BUILDTYPE)/,+2d" "$makefile_containing_version" + sed -i "/\$(filter .*\$(${vendor^^}_BUILDTYPE)/,/endif/d" "$makefile_containing_version" # Set a custom updater URI if a OTA URL is provided echo ">> [$(date)] Adding OTA URL overlay (for custom URL $OTA_URL)"