mirror of
https://github.com/f-droid/fdroidserver.git
synced 2026-05-03 13:24:46 -04:00
Small gradle wrapper fix
It broke on cases like:
if (gradle.gradleVersion >= "2.2") {
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user