GoMFT: Fix release grep (#3462)

* Fix release grep

* Fix release grep in update function
This commit is contained in:
Slaviša Arežina
2025-03-28 21:31:15 +01:00
committed by GitHub
parent c4cdb030b4
commit 07a3ab353c
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ function update_script() {
msg_error "No ${APP} Installation Found!"
exit
fi
RELEASE=$(curl -s https://api.github.com/repos/StarFleetCPTN/GoMFT/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
RELEASE=$(curl -s https://api.github.com/repos/StarFleetCPTN/GoMFT/releases/latest | grep "tag_name" | awk '{print substr($2, 4, length($2)-5) }')
if ! dpkg -l | grep -q "^ii.*build-essential"; then
$STD apt-get install -y build-essential
fi