diff --git a/docker-mods/qbittorrent/root/etc/s6-overlay/s6-rc.d/init-mod-themepark/run b/docker-mods/qbittorrent/root/etc/s6-overlay/s6-rc.d/init-mod-themepark/run index bf0ca477..ee7cdf03 100755 --- a/docker-mods/qbittorrent/root/etc/s6-overlay/s6-rc.d/init-mod-themepark/run +++ b/docker-mods/qbittorrent/root/etc/s6-overlay/s6-rc.d/init-mod-themepark/run @@ -25,8 +25,8 @@ fi if [ -z ${QBITTORRENT_VERSION+x} ]; then \ echo 'QBITTORRENT_VERSION not set. Using the latest stable.' \ - QBITTORRENT_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz" | tar -xz -C /temp \ - && awk '/^P:qbittorrent-nox$/,/V:/' /temp/APKINDEX | sed -n 2p | sed 's/^V://'); \ + QBITTORRENT_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \ + && awk '/^P:qbittorrent-nox$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://' | sed 's/-.*//'); \ fi # Display variables for troubleshooting @@ -82,6 +82,7 @@ if [[ ! -d /themepark ]]; then cp -a /temp/src/icons/. /themepark/private/icons printf '\nCopy finished\n\n' rm -rf /temp + rm -rf /tmp/* printf '\nCleanup finished\n\n' fi