diff --git a/02-topgrade.sh b/02-topgrade.sh index 576f472..cb63015 100644 --- a/02-topgrade.sh +++ b/02-topgrade.sh @@ -30,7 +30,9 @@ if [ ! -f "$topgrade_binary" ]; then echo "** topgrade binary not present at $topgrade_binary" else current_version=$($topgrade_binary --version | sed 's/[^0-9]*//g') + echo $current_version newest_release=$(curl -sL https://api.github.com/repos/$topgrade_git_owner/$topgrade_git_repo/releases/latest | jq -r ".tag_name" | sed 's/[^0-9]*//g') + echo $newest_release fi echo "checking for topgrade confs"