detectWrongSettings.sh 302 B

1234567891011
  1. #!/bin/bash
  2. snapshotCount=$(./gradlew dependencies | grep SNAPSHOT | grep -v "com.github.nextcloud:android-library" -c)
  3. betaCount=$(grep "<bool name=\"is_beta\">true</bool>" app/src/main/res/values/setup.xml -c)
  4. if [[ $snapshotCount -eq 0 && $betaCount -eq 0 ]] ; then
  5. exit 0
  6. else
  7. exit 1
  8. fi