From 015688e3946e4eec5df2bb3ce96ec070b2b2e655 Mon Sep 17 00:00:00 2001 From: Tobias <96661824+CrazyWolf13@users.noreply.github.com> Date: Sun, 15 Feb 2026 13:06:57 +0100 Subject: [PATCH] Update jellyseerr.sh --- ct/jellyseerr.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ct/jellyseerr.sh b/ct/jellyseerr.sh index 74a18a1e9..35970c34f 100644 --- a/ct/jellyseerr.sh +++ b/ct/jellyseerr.sh @@ -29,9 +29,7 @@ function update_script() { exit fi - if [[ -f "/opt/jellyseerr/package.json" ]]; then - CURRENT_VERSION=$(grep '"version"' /opt/jellyseerr/package.json | head -n1 | awk -F'"' '{print $4}') - if [[ "$CURRENT_VERSION" == "2.7.3" ]]; then + if [[ -f "/opt/jellyseerr/package.json" ]] && [[ "$(grep -m1 '"version"' /opt/jellyseerr/package.json | awk -F'"' '{print $4}')" == "2.7.3" ]]; then echo echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" echo "Jellyseerr v2.7.3 detected."