detectWrongSettings.sh 493 B

123456789101112131415
  1. #!/bin/bash
  2. # SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
  3. # SPDX-FileCopyrightText: 2016 Tobias Kaminsky <tobias@kaminsky.me>
  4. # SPDX-License-Identifier: GPL-3.0-or-later
  5. snapshotCount=$(./gradlew dependencies | grep SNAPSHOT | grep -v "com.github.nextcloud:android-library" -c)
  6. betaCount=$(grep "<bool name=\"is_beta\">true</bool>" app/src/main/res/values/setup.xml -c)
  7. if [[ $snapshotCount -eq 0 && $betaCount -eq 0 ]] ; then
  8. exit 0
  9. else
  10. exit 1
  11. fi