From b8c56918038b56f9494173d13bc786e9225be545 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 31 Mar 2025 17:39:51 +0200 Subject: [PATCH] GoMFT: Update Curl Path (#3537) * GoMFT: Update Curl Path * Update gomft.sh --- ct/gomft.sh | 4 ++-- install/gomft-install.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ct/gomft.sh b/ct/gomft.sh index 4a6ccb527..519d23b64 100644 --- a/ct/gomft.sh +++ b/ct/gomft.sh @@ -47,9 +47,9 @@ function update_script() { msg_info "Updating $APP to ${RELEASE}" rm -f /opt/gomft/gomft temp_file=$(mktemp) - curl -fsSL "https://github.com/StarFleetCPTN/GoMFT/archive/refs/tags/v.${RELEASE}.tar.gz" -o $temp_file + curl -fsSL "https://github.com/StarFleetCPTN/GoMFT/archive/refs/tags/v${RELEASE}.tar.gz" -o $temp_file tar -xzf $temp_file - cp -rf GoMFT-v.${RELEASE}/* /opt/gomft + cp -rf GoMFT-${RELEASE}/* /opt/gomft cd /opt/gomft rm -f /opt/gomft/node_modules $STD npm ci diff --git a/install/gomft-install.sh b/install/gomft-install.sh index 68f620df5..d0b72b59e 100644 --- a/install/gomft-install.sh +++ b/install/gomft-install.sh @@ -47,9 +47,9 @@ msg_ok "Installed Node.js" msg_info "Setup ${APPLICATION} (Patience)" temp_file=$(mktemp) RELEASE=$(curl -fsSL https://api.github.com/repos/StarFleetCPTN/GoMFT/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }') -curl -fsSL "https://github.com/StarFleetCPTN/GoMFT/archive/refs/tags/v.${RELEASE}.tar.gz" -o $temp_file +curl -fsSL "https://github.com/StarFleetCPTN/GoMFT/archive/refs/tags/v${RELEASE}.tar.gz" -o $temp_file tar -xzf $temp_file -mv GoMFT-v.${RELEASE}/ /opt/gomft +mv GoMFT-${RELEASE}/ /opt/gomft cd /opt/gomft $STD npm ci $STD node build.js