diff --git a/ct/qbittorrent.sh b/ct/qbittorrent.sh index 1570e13..9dcbc02 100644 --- a/ct/qbittorrent.sh +++ b/ct/qbittorrent.sh @@ -35,7 +35,7 @@ function update_script() { sed -i 's@ExecStart=/usr/bin/qbittorrent-nox@ExecStart=/opt/qbittorrent/qbittorrent-nox@g' /etc/systemd/system/qbittorrent-nox.service fi FULLRELEASE=$(curl -s https://api.github.com/repos/userdocs/qbittorrent-nox-static/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') - RELEASE=$(echo $RELEASE | cut -c 9-13) + RELEASE=$(echo $FULLRELEASE | cut -c 9-13) if [[ ! -f /opt/${APP}_version.txt ]] || [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]]; then msg_info "Stopping Service" systemctl stop qbittorrent-nox