This commit is contained in:
deathbybandaid 2022-03-08 10:04:59 -05:00
parent 88661eca7b
commit c307a6b862
2 changed files with 5 additions and 6 deletions

View File

@ -18,12 +18,8 @@ topgrade_git_owner="r-darwish"
topgrade_git_repo="topgrade" topgrade_git_repo="topgrade"
if [ ! -f "$topgrade_binary" ]; then if [ ! -f "$topgrade_binary" ]; then
echo "** topgrade binary missing, installing now" echo "** topgrade binary missing, installing now"
newest_release=$(curl -sL https://api.github.com/repos/$topgrade_git_owner/$topgrade_git_repo/releases/latest | jq -r ".tag_name")
echo $newest_release
newest_release_url=$(curl -sL https://api.github.com/repos/$topgrade_git_owner/$topgrade_git_repo/releases/latest | jq -r ".assets[].browser_download_url" | grep x86_64-unknown-linux-gnu.tar.gz) newest_release_url=$(curl -sL https://api.github.com/repos/$topgrade_git_owner/$topgrade_git_repo/releases/latest | jq -r ".assets[].browser_download_url" | grep x86_64-unknown-linux-gnu.tar.gz)
echo $newest_release_url wget $newest_release_url -O "$topgrade_tar"
wget "https://github.com/$topgrade_git_owner/$topgrade_git_repo/releases/download/v8.2.0/topgrade-v8.2.0-x86_64-unknown-linux-gnu.tar.gz" -O "$topgrade_tar"
# curl -s -L "https://github.com/$topgrade_git_user/$topgrade_git_repo/releases/latest" | egrep -o '/$topgrade_git_user/$topgrade_git_repo/releases/download/[0-9]*/[0-9]*-x86_64-unknown-linux-gnu.tar.gz' | wget --base=http://github.com/ -i - -O "$topgrade_tar"
tar -xvf $topgrade_tar -C $topgrade_install_directory tar -xvf $topgrade_tar -C $topgrade_install_directory
rm $topgrade_tar rm $topgrade_tar
chmod +x $topgrade_binary chmod +x $topgrade_binary
@ -32,9 +28,11 @@ else
fi fi
if [ ! -f "$topgrade_binary" ]; then if [ ! -f "$topgrade_binary" ]; then
echo "** topgrade binary not present at $topgrade_binary" echo "** topgrade binary not present at $topgrade_binary"
else
current_version=$($topgrade_binary --version | sed 's/[^0-9]*//g')
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')
fi fi
echo "checking for topgrade confs" echo "checking for topgrade confs"
custom_topgrade_confs_path="/etc/topgrade" custom_topgrade_confs_path="/etc/topgrade"
custom_topgrade_confs_git="https://git.deathbybandaid.net/deathbybandaid/topgrade.git" custom_topgrade_confs_git="https://git.deathbybandaid.net/deathbybandaid/topgrade.git"

1
dependencies/sed.dep vendored Normal file
View File

@ -0,0 +1 @@
sed