From d8d16ee102d6bb816c7063b9e56a439edc046dbb Mon Sep 17 00:00:00 2001 From: gilbN <24592972+gilbN@users.noreply.github.com> Date: Sun, 28 Feb 2021 22:02:46 +0100 Subject: [PATCH] correct svn check --- qbittorrent/root/etc/cont-init.d/98-themepark | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/qbittorrent/root/etc/cont-init.d/98-themepark b/qbittorrent/root/etc/cont-init.d/98-themepark index f7ceeeb5..392c7990 100644 --- a/qbittorrent/root/etc/cont-init.d/98-themepark +++ b/qbittorrent/root/etc/cont-init.d/98-themepark @@ -4,7 +4,7 @@ echo '------------------------------' echo '| qBittorrent theme.park Mod |' echo '------------------------------' -if [[ ! -d /usr/bin/svn ]]; then +if ! [[ -x "$(command -v svn)" ]]; then echo '--------------------------' echo '| Installing svn package |' echo '--------------------------' @@ -33,13 +33,15 @@ if [[ ! -d /themepark ]]; then echo '---------------------------------------' echo '| Downloading WebUI files from github |' echo '---------------------------------------' + printf '\nDownloading qBittorrent webui to "/themepark"..please wait\n' svn export https://github.com/qbittorrent/qBittorrent/trunk/src/webui/www /themepark - printf '\nDownloaded qBittorrent webui to "/themepark"\n' + printf '\nDownload finished\n\n' + printf '\nDownloading qBittorrent webui icons to "/themepark"..please wait\n' svn export https://github.com/qbittorrent/qBittorrent/trunk/src/icons /temp cp -r /temp /themepark/public cp -r /temp /themepark/private rm -rf /temp - printf '\nDownloaded qBittorrent webui icons to "/themepark"\n' + printf '\nDownload finished\n\n' fi # Adding stylesheets @@ -56,7 +58,7 @@ if ! grep -q "${TP_DOMAIN}" /themepark/private/index.html; then echo '| Adding the stylesheet to /themepark/private/index.html |' echo '----------------------------------------------------------' sed -i "s/<\/head>/<\/head> /g" /themepark/private/index.html - printf 'Stylesheet set to %s on private index.html\n' "${TP_THEME}" + printf 'Stylesheet set to %s on private index.html\n\n' "${TP_THEME}" fi if ! grep -q "WebUI\\\RootFolder" /config/qBittorrent/qBittorrent.conf; then