change url validation

This commit is contained in:
12e70ig
2025-05-06 02:46:23 +02:00
parent 99333d11d2
commit 5fd159b812
2 changed files with 29 additions and 3 deletions

View File

@ -32,8 +32,8 @@ function update_script() {
msg_info "Updating $APP LXC"
temp_file="$(mktemp)"
rm -rf /opt/huntarr
RELEASE=$(curl -fsSL https://api.github.com/repos/huntarr/huntarr/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
curl -fsSL "https://github.com/huntarr/huntarr/archive/refs/tags/${RELEASE}.tar.gz" -o "$temp_file"
RELEASE=$(curl -fsSL https://api.github.com/repos/plexguide/Huntarr.io/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
curl -fsSL "https://github.com/plexguide/Huntarr.io/archive/refs/tags/${RELEASE}.tar.gz" -o "$temp_file"
$STD mkdir -p /opt/huntarr
$STD tar -xzf "$temp_file" -C /opt/huntarr --strip-components=1