Update Medicat_Installer.sh

pull/2/head
Matthew Clark 2 years ago committed by GitHub
parent 7806cd6a95
commit 61836d4345
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -30,14 +30,14 @@ fi
if ! [ $(which 7z 2>/dev/null) ]; then
sudo $pkgmgr install p7zip-full
fi
if ! [ $(which curl 2>/dev/null) ]; then
sudo $pkgmgr install curl
fi
if ! [ $(sudo which mkntfs 2>/dev/null) ]; then
sudo $pkgmgr install ntfs-3g
fi
echo "Downloading Ventoy"
wget "https://api.github.com/repos/ventoy/Ventoy/releases/latest"
cat latest | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/' >> version
venver=$(cat version)
rm version
venver=$(curl -sL https://api.github.com/repos/ventoy/Ventoy/releases/latest | grep '"tag_name":' | cut -d'"' -f4)
rm latest
echo -e "Attempting to download Ventoy Version: ${venver: -6}\n\n\n"
wget https://github.com/ventoy/Ventoy/releases/download/v${venver: -6}/ventoy-${venver: -6}-linux.tar.gz -O ventoy.tar.gz

Loading…
Cancel
Save