From 42d1e781c370f3db307ebc908f88383cd28a8ae7 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 5 Jul 2022 11:50:01 +0200 Subject: [PATCH] Revert --- qbittorrent/rootfs/etc/cont-init.d/30-nginx.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qbittorrent/rootfs/etc/cont-init.d/30-nginx.sh b/qbittorrent/rootfs/etc/cont-init.d/30-nginx.sh index 4f016a273..810ba4d84 100644 --- a/qbittorrent/rootfs/etc/cont-init.d/30-nginx.sh +++ b/qbittorrent/rootfs/etc/cont-init.d/30-nginx.sh @@ -43,10 +43,9 @@ xargs) || LATEST_RELEASE=$(curl -f -s --retry 5 -L https://api.github.com/repos/ grep "browser_download_url.*zip" | cut -d : -f 2,3 | tr -d \" | + head -n 1 | xargs) -LATEST_RELEASE="$(echo "${LATEST_RELEASE}" | head -1)" - [ "$DEBUG" = "debug" ] && echo "url: $LATEST_RELEASE" [ "$DEBUG" = "debug" ] && echo "Before curl"