From 332f6a79df443251775973b773b7d94321f5531d Mon Sep 17 00:00:00 2001 From: Bram Suurd <78373894+BramSuurdje@users.noreply.github.com> Date: Wed, 15 May 2024 23:59:52 +0200 Subject: [PATCH] Update iVentoy installation script to use the latest release version --- install/iventoy-install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install/iventoy-install.sh b/install/iventoy-install.sh index 559e3965..70d5e733 100644 --- a/install/iventoy-install.sh +++ b/install/iventoy-install.sh @@ -19,9 +19,10 @@ $STD apt-get install -y sudo $STD apt-get install -y mc msg_ok "Installed Dependencies" -msg_info "Installing iVentoy" +RELEASE=$(curl -s https://api.github.com/repos/ventoy/pxe/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') +msg_info "Installing iVentoy v${RELEASE}" mkdir -p /opt/iventoy/ -wget -q $(curl -s https://api.github.com/repos/ventoy/pxe/releases/latest | grep download | grep linux-free | cut -d\" -f4) +wget -q https://github.com/ventoy/PXE/releases/download/v${RELEASE}/iventoy-${RELEASE}-linux-free.tar.gz tar -C /tmp -xzf iventoy*.tar.gz mv /tmp/iventoy*/* /opt/iventoy/ rm -rf iventoy*.tar.gz