blob: effeba21185c1d668254038d3ff8d5e7d2e574bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
post_upgrade() {
version=$(echo "$1" | cut -d ':' -f 2 | cut -d '.' -f 1-3)
echo "Release notes for FastAnime v${version}:"
if ! command -v jq 2>&1 > /dev/null; then
echo "For fastanime release notes, check https://github.com/Benexl/FastAnime/releases/latest"
else
echo -e "$(curl -sL "https://api.github.com/repos/Benexl/FastAnime/releases/tags/v$version" | jq '.body')"
fi
echo "Make sure to run 'fastanime cache --clean' to clean the cache"
echo "Make sure to run 'fastanime config --update' to update the config"
}
|