fix basename for curl

This commit is contained in:
CanbiZ
2025-04-01 10:51:52 +02:00
parent 0ed9e8c205
commit f7e7d457df
207 changed files with 298 additions and 298 deletions

View File

@@ -22,7 +22,7 @@ msg_ok "Installed Dependencies"
msg_info "Settting up Suwayomi-Server"
URL=$(curl -fsSL https://api.github.com/repos/Suwayomi/Suwayomi-Server/releases/latest | grep "browser_download_url" | awk '{print substr($2, 2, length($2)-2) }' | tail -n+2 | head -n 1)
RELEASE=$(curl -fsSL https://api.github.com/repos/Suwayomi/Suwayomi-Server/releases/latest | grep "tag_name" | awk '{print substr($2, 2, length($2)-3) }')
curl -fsSL "$URL" -O $(basename "$URL")
curl -fsSL "$URL" -o $(basename"$URL")
$STD dpkg -i *.deb
echo ${RELEASE} >/opt/suwayomi-server_version.txt
msg_ok "Done setting up Suwayomi-Server"