Skip to content

Commit 07a3ab3

Browse files
authored
GoMFT: Fix release grep (#3462)
* Fix release grep * Fix release grep in update function
1 parent c4cdb03 commit 07a3ab3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ct/gomft.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function update_script() {
2828
msg_error "No ${APP} Installation Found!"
2929
exit
3030
fi
31-
RELEASE=$(curl -s https://api.github.com/repos/StarFleetCPTN/GoMFT/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
31+
RELEASE=$(curl -s https://api.github.com/repos/StarFleetCPTN/GoMFT/releases/latest | grep "tag_name" | awk '{print substr($2, 4, length($2)-5) }')
3232
if ! dpkg -l | grep -q "^ii.*build-essential"; then
3333
$STD apt-get install -y build-essential
3434
fi

install/gomft-install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ msg_ok "Setup Golang"
3434

3535
msg_info "Setup ${APPLICATION} (Patience)"
3636
temp_file=$(mktemp)
37-
RELEASE=$(curl -s https://api.github.com/repos/StarFleetCPTN/GoMFT/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
37+
RELEASE=$(curl -s https://api.github.com/repos/StarFleetCPTN/GoMFT/releases/latest | grep "tag_name" | awk '{print substr($2, 4, length($2)-5) }')
3838
wget -q "https://github.com/StarFleetCPTN/GoMFT/archive/refs/tags/v${RELEASE}.tar.gz" -O $temp_file
3939
tar -xzf $temp_file
4040
mv GoMFT-${RELEASE}/ /opt/gomft

0 commit comments

Comments
 (0)