Update detectWrongSettings.sh

Signed-off-by: Tobias Kaminsky <tobias@kaminsky.me>
This commit is contained in:
Tobias Kaminsky
2025-07-02 16:18:50 +02:00
committed by GitHub
parent 138297537d
commit 7060da8a64

View File

@ -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)
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)
if [[ $(echo "$lastHashes" | grep -c $libraryHash) -ne 1 ]]; then