Skip to content

Commit 13fbf25

Browse files
authored
Fix: use correct tag parsing for release during update check (#7072)
1 parent 21d2159 commit 13fbf25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ct/tududi.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ function update_script() {
2828
exit
2929
fi
3030

31-
RELEASE=$(curl -fsSL https://api.github.com/repos/chrisvel/tududi/releases/latest | yq '.tag_name' | sed 's/^v//')
31+
RELEASE=$(curl -fsSL https://api.github.com/repos/chrisvel/tududi/releases/latest | yq '.tag_name' | sed 's/^"v//;s/"$//')
3232
if [[ "${RELEASE}" != "$(cat ~/.tududi 2>/dev/null)" ]] || [[ ! -f ~/.tududi ]]; then
3333
msg_info "Stopping Service"
3434
systemctl stop tududi

0 commit comments

Comments
 (0)