change url validation
This commit is contained in:
@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user