Skip to content

Commit

Permalink
Merge pull request nextcloud#13088 from nextcloud/fixLibraryUpdate
Browse files Browse the repository at this point in the history
first pull, then check
  • Loading branch information
tobiasKaminsky authored Jun 10, 2024
2 parents da2e495 + ab34c43 commit d2923cb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/updateLibraryHash.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
# SPDX-FileCopyrightText: 2024 Tobias Kaminsky <[email protected]>
# SPDX-License-Identifier: AGPL-3.0-or-later OR GPL-2.0-only

latestCommit=$(curl -s https://api.github.com/repos/nextcloud/android-library/commits/master | jq .sha | sed s'/\"//g')
currentCommit=$(grep "androidLibraryVersion" build.gradle | cut -f2 -d'"')

git fetch
git checkout master
git pull

latestCommit=$(curl -s https://api.github.com/repos/nextcloud/android-library/commits/master | jq .sha | sed s'/\"//g')
currentCommit=$(grep "androidLibraryVersion" build.gradle | cut -f2 -d'"')

[[ $latestCommit == "$currentCommit" ]] && echo "Nothing to do. Commit is: $latestCommit" && exit # nothing to do

git fetch
Expand Down

0 comments on commit d2923cb

Please sign in to comment.