mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-04 22:40:29 +03:00
Merge branch 'gradlew_no_eol' into 'master'
gradlew-fdroid: support parsing files with no EOL before EOF See merge request fdroid/fdroidserver!707
This commit is contained in:
commit
e049a120f8
1 changed files with 2 additions and 2 deletions
|
|
@ -158,7 +158,7 @@ v_all=${plugin_v[@]}
|
|||
# Earliest takes priority
|
||||
for f in {.,..}/gradle/wrapper/gradle-wrapper.properties; do
|
||||
[[ -f $f ]] || continue
|
||||
while read -r line; do
|
||||
while IFS='' read -r line || [ -n "$line" ]; do
|
||||
if [[ $line == 'distributionUrl='* ]]; then
|
||||
wrapper_ver=${line#*/gradle-}
|
||||
wrapper_ver=${wrapper_ver%-*.zip}
|
||||
|
|
@ -176,7 +176,7 @@ fi
|
|||
# Earliest takes priority
|
||||
for f in {.,..}/build.gradle; do
|
||||
[[ -f $f ]] || continue
|
||||
while read -r line; do
|
||||
while IFS='' read -r line || [ -n "$line" ]; do
|
||||
if [[ -z "$plugin_pver" && $line == *'com.android.tools.build:gradle:'* ]]; then
|
||||
plugin_pver=${line#*[\'\"]com.android.tools.build:gradle:}
|
||||
plugin_pver=${plugin_pver%[\'\"]*}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue