Update ersatztv-install.sh

do script easier
This commit is contained in:
CanbiZ 2024-04-29 14:45:56 +02:00 committed by GitHub
parent be707c5b45
commit 50d0abdda0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -31,13 +31,11 @@ msg_ok "Installed Dependencies"
msg_info "Installing ErsatzTV (Patience)" msg_info "Installing ErsatzTV (Patience)"
cd /opt cd /opt
RELEASE=$(curl -s https://api.github.com/repos/ErsatzTV/ErsatzTV/releases | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }') RELEASE=$(curl -s https://api.github.com/repos/ErsatzTV/ErsatzTV/releases | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }' | head -n 1)
LATEST_RELEASE=$(echo $RELEASE | awk '{print $1}') wget -q https://github.com/ErsatzTV/ErsatzTV/releases/download/${RELEASE}/ErsatzTV-${RELEASE}-linux-x64.tar.gz
echo $LATEST_RELEASE tar -xf ErsatzTV-${RELEASE}-linux-x64.tar.gz
wget -q --no-check-certificate "https://github.com/ErsatzTV/ErsatzTV/releases/download/${LATEST_RELEASE}/ErsatzTV-${LATEST_RELEASE}-linux-x64.tar.gz" mv ErsatzTV-${RELEASE}-linux-x64 ErsatzTV
tar -xf ErsatzTV-${LATEST_RELEASE}-linux-x64.tar.gz rm -R ErsatzTV-${RELEASE}-linux-x64.tar.gz
mv ErsatzTV-${LATEST_RELEASE}-linux-x64 ErsatzTV
rm -R ErsatzTV-${LATEST_RELEASE}-linux-x64.tar.gz
msg_ok "Installed ErsatzTV" msg_ok "Installed ErsatzTV"
msg_info "Creating Service" msg_info "Creating Service"