mirror of
https://github.com/nextcloud/android.git
synced 2025-08-15 22:51:58 +00:00
Update detectWrongSettings.sh
Signed-off-by: Tobias Kaminsky <tobias@kaminsky.me>
This commit is contained in:
@ -8,7 +8,7 @@ snapshotCount=$(./gradlew dependencies | grep SNAPSHOT -c)
|
|||||||
betaCount=$(grep "<bool name=\"is_beta\">true</bool>" app/src/main/res/values/setup.xml -c)
|
betaCount=$(grep "<bool name=\"is_beta\">true</bool>" app/src/main/res/values/setup.xml -c)
|
||||||
libraryHash=$(grep androidLibraryVersion build.gradle | cut -d= -f2 | tr -d \")
|
libraryHash=$(grep androidLibraryVersion build.gradle | cut -d= -f2 | tr -d \")
|
||||||
|
|
||||||
baseBranch="master"
|
baseBranch="stable-2.21"
|
||||||
lastHashes=$(curl "https://api.github.com/repos/nextcloud/android-library/commits?sha=$baseBranch" | jq ".[] .sha" | head -n 20)
|
lastHashes=$(curl "https://api.github.com/repos/nextcloud/android-library/commits?sha=$baseBranch" | jq ".[] .sha" | head -n 20)
|
||||||
|
|
||||||
if [[ $(echo "$lastHashes" | grep -c $libraryHash) -ne 1 ]]; then
|
if [[ $(echo "$lastHashes" | grep -c $libraryHash) -ne 1 ]]; then
|
||||||
|
Reference in New Issue
Block a user