This commit is contained in:
tremor021 2025-02-09 03:06:11 +01:00
parent eb5b1db29f
commit 143ced19f2

View File

@ -25,12 +25,10 @@ function update_script() {
header_info
check_container_storage
check_container_resources
if [[ ! -d /opt/watcharr ]]; then
msg_error "No ${APP} Installation Found!"
exit
fi
RELEASE=$(curl -s https://api.github.com/repos/sbondCo/Watcharr/releases/latest | grep "tag_name" | awk '{print substr($2, 3, length($2)-4) }')
if [[ "${RELEASE}" != "$(cat /opt/${APP}_version.txt)" ]] || [[ ! -f /opt/${APP}_version.txt ]]; then
msg_info "Updating $APP"