mirror of
https://github.com/nextcloud/android.git
synced 2024-11-24 22:25:44 +03:00
fix script
Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
parent
a951743f60
commit
cc18e2b702
1 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,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 library build.gradle | cut -f2 -d'"' | grep "^[0-9a-zA-Z]\{40\}$" -c)
|
||||
libraryHash=$(grep androidLibraryVersion build.gradle | cut -f2 -d'"' | grep "^[0-9a-zA-Z]\{40\}$" -c)
|
||||
|
||||
|
||||
if [[ $snapshotCount -gt 0 ]] ; then
|
||||
|
@ -18,7 +18,7 @@ if [[ $betaCount -gt 0 ]] ; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
if [[ $libraryHash = 0 ]] ; then
|
||||
if [[ $libraryHash -eq 0 ]] ; then
|
||||
echo "Library hash is wrong!"
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue