Explorar o código

better check

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
tobiasKaminsky hai 7 meses
pai
achega
007f28b684
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      scripts/analysis/detectWrongSettings.sh

+ 1 - 1
scripts/analysis/detectWrongSettings.sh

@@ -6,7 +6,7 @@
 
 
 snapshotCount=$(./gradlew dependencies | grep SNAPSHOT -c)
 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 -f2 -d'"' | grep "^[0-9a-zA-Z]\{40\}$" -c)
+libraryHash=$(grep androidLibraryVersion build.gradle | cut -f2 -d'"' | grep -vi "snapshot"  | grep "^[0-9a-zA-Z]\{10,40\}$" -c)
 
 
 
 
 if [[ $snapshotCount -gt 0 ]] ; then
 if [[ $snapshotCount -gt 0 ]] ; then