mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-05 18:50:09 +02:00
Small gradle wrapper fix
It broke on cases like: if (gradle.gradleVersion >= "2.2") {
This commit is contained in:
parent
5b8d593275
commit
20ced3f303
@ -43,7 +43,7 @@ for f in build.gradle ../build.gradle; do
|
|||||||
while read l; do
|
while read l; do
|
||||||
if [[ -z "$plugin_pver" && $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/")
|
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/")
|
wrapper_ver=$(echo -n "$l" | sed "s/.*gradleVersion *=* *[\"']\\([0-9\\.]\\+\\)[\"'].*/\\1/")
|
||||||
fi
|
fi
|
||||||
done < $f
|
done < $f
|
||||||
|
Loading…
Reference in New Issue
Block a user