mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-10-05 17:01:06 +03:00
Stop the gradle version searches once one is found
This commit is contained in:
parent
cf1201833b
commit
6cd21c108c
1 changed files with 2 additions and 2 deletions
|
@ -39,9 +39,9 @@ done
|
|||
for f in ../build.gradle build.gradle; do
|
||||
[[ -f $f ]] || continue
|
||||
while read l; do
|
||||
if [[ $l == *'com.android.tools.build:gradle:'* ]]; then
|
||||
if [[ -z "$plugin_pver" && $l == *'com.android.tools.build:gradle:'* ]]; then
|
||||
plugin_pver=$(echo -n "$l" | sed "s/.*com.android.tools.build:gradle:\\([0-9\\.\\+]\\+\\).*/\\1/")
|
||||
elif [[ $l == *'gradleVersion'* ]]; then
|
||||
elif [[ -z "$wrapper_ver" && $l == *'gradleVersion'* ]]; then
|
||||
wrapper_ver=$(echo -n "$l" | sed "s/.*gradleVersion[ ]*=[ ]*[\"']\\([0-9\\.]\\+\\)[\"'].*/\\1/")
|
||||
fi
|
||||
done < $f
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue