Skip to content

Commit b8c5691

Browse files
authored
GoMFT: Update Curl Path (#3537)
* GoMFT: Update Curl Path * Update gomft.sh
1 parent 0f5c9df commit b8c5691

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

ct/gomft.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ function update_script() {
4747
msg_info "Updating $APP to ${RELEASE}"
4848
rm -f /opt/gomft/gomft
4949
temp_file=$(mktemp)
50-
curl -fsSL "https://github.com/StarFleetCPTN/GoMFT/archive/refs/tags/v.${RELEASE}.tar.gz" -o $temp_file
50+
curl -fsSL "https://github.com/StarFleetCPTN/GoMFT/archive/refs/tags/v${RELEASE}.tar.gz" -o $temp_file
5151
tar -xzf $temp_file
52-
cp -rf GoMFT-v.${RELEASE}/* /opt/gomft
52+
cp -rf GoMFT-${RELEASE}/* /opt/gomft
5353
cd /opt/gomft
5454
rm -f /opt/gomft/node_modules
5555
$STD npm ci

install/gomft-install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ msg_ok "Installed Node.js"
4747
msg_info "Setup ${APPLICATION} (Patience)"
4848
temp_file=$(mktemp)
4949
RELEASE=$(curl -fsSL https://api.github.com/repos/StarFleetCPTN/GoMFT/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
50-
curl -fsSL "https://github.com/StarFleetCPTN/GoMFT/archive/refs/tags/v.${RELEASE}.tar.gz" -o $temp_file
50+
curl -fsSL "https://github.com/StarFleetCPTN/GoMFT/archive/refs/tags/v${RELEASE}.tar.gz" -o $temp_file
5151
tar -xzf $temp_file
52-
mv GoMFT-v.${RELEASE}/ /opt/gomft
52+
mv GoMFT-${RELEASE}/ /opt/gomft
5353
cd /opt/gomft
5454
$STD npm ci
5555
$STD node build.js

0 commit comments

Comments
 (0)