diff --git a/src/build.sh b/src/build.sh index c4868c81b57c5656a1869b5b7462cb6a79ba31db..459e449b1423bc7d35c4c9aeb7fa0a0c6ee5505a 100755 --- a/src/build.sh +++ b/src/build.sh @@ -34,7 +34,7 @@ fi sync_successful=true use_openjdk_from_ubuntu=false -branch_dir=$(sed 's/.*-\([a-zA-Z]*\)$/\1/' <<< "${BRANCH_NAME}") +branch_dir=$(sed -E 's/^v[0-9](\.[0-9]*){0,2}(-(beta|alpha|rc)(\.[0-9]*){0,1}){0,1}-(nougat|oreo|pie|q|r)(-[a-zA-Z0-9_]*)*$/\5/' <<< "${BRANCH_NAME}") branch_dir=${branch_dir^^} if [ -n "${BRANCH_NAME}" ] && [ -n "${DEVICE}" ]; then @@ -140,7 +140,7 @@ if [ -n "${BRANCH_NAME}" ] && [ -n "${DEVICE}" ]; then if [ "$sync_successful" = true ]; then repo forall -c 'git lfs pull' fi - + if [ ! -d "vendor/$vendor" ]; then echo ">> [$(date)] Missing \"vendor/$vendor\", aborting"