mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-09-25 11:11:02 +00:00
fix basename for curl
This commit is contained in:
@@ -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"
|
||||
|
Reference in New Issue
Block a user