Skip to content

Commit

Permalink
Add a note if there is new versions of the cli
Browse files Browse the repository at this point in the history
  • Loading branch information
nsg committed Jul 30, 2023
1 parent 73b67c7 commit c3e8fd8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions version-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@ sed -i "s/$current_version/$latest_version/g" snap/snapcraft.yaml
sed -i "s/$current_version/$latest_version/g" parts/machine-learning/Makefile
sed -i "s/$current_version/$latest_version/g" patches/Makefile
sed -i "s/$current_version/$latest_version/g" VERSION

latest_immich_cli_version=$(curl -s https://api.github.com/repos/immich-app/CLI/releases/latest | jq -r '.tag_name')
if ! grep -q $latest_immich_cli_version snap/snapcraft.yaml; then
echo "Note, new immich-cli version available: $latest_immich_cli_version"
fi

0 comments on commit c3e8fd8

Please sign in to comment.