diff --git a/scripts/analysis/detectWrongSettings.sh b/scripts/analysis/detectWrongSettings.sh index 473635c6dd..f60d9900be 100755 --- a/scripts/analysis/detectWrongSettings.sh +++ b/scripts/analysis/detectWrongSettings.sh @@ -9,9 +9,9 @@ betaCount=$(grep "true" app/src/main/res/values/se libraryHash=$(grep androidLibraryVersion build.gradle | cut -d= -f2 | tr -d \") target=$(curl https://api.github.com/repos/nextcloud/android-library/commits/$libraryHash/pulls | jq ".[] .base.ref" | tr -d \") -merged_at=$(curl https://api.github.com/repos/nextcloud/android-library/commits/$libraryHash/pulls | jq ".[] .merged_at" | tr -d\") +merged_at=$(curl https://api.github.com/repos/nextcloud/android-library/commits/$libraryHash/pulls | jq ".[] .merged_at" | tr -d \") -if [[ $target != "master" ]] -o [[ -z $merget_at ]]; then +if [[ $target != "master" ]] || [[ -z $merged_at ]]; then echo "Library commit wrong!" exit 1 fi