Update umlautadaptarr.sh
This commit is contained in:
parent
d42258b57e
commit
49502595d3
@ -31,8 +31,7 @@ function update_script() {
|
||||
msg_info "Updating $APP..."
|
||||
systemctl stop umlautadaptarr
|
||||
temp_file=$(mktemp)
|
||||
trap 'rm -f "$temp_file"' EXIT
|
||||
RELEASE=$(curl -s https://api.github.com/repos/PCJones/Umlautadaptarr/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3)}')
|
||||
RELEASE=$(curl -fsSL https://api.github.com/repos/PCJones/Umlautadaptarr/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3)}')
|
||||
curl -fsSL "https://github.com/PCJones/Umlautadaptarr/releases/download/${RELEASE}/linux-x64.zip" -o $temp_file
|
||||
$STD unzip -u $temp_file '*/**' -d /opt/UmlautAdaptarr
|
||||
systemctl start umlautadaptarr
|
||||
|
Loading…
x
Reference in New Issue
Block a user