mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-11 17:50:29 +03:00
Small gradle wrapper fix
It broke on cases like:
if (gradle.gradleVersion >= "2.2") {
This commit is contained in:
parent
5b8d593275
commit
20ced3f303
1 changed files with 1 additions and 1 deletions
|
|
@ -43,7 +43,7 @@ for f in build.gradle ../build.gradle; do
|
|||
while read l; do
|
||||
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 [[ -z "$wrapper_ver" && $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