From 1cc22bd070cbfc83e5633c8b737e1926d63643a0 Mon Sep 17 00:00:00 2001 From: Tobias <96661824+CrazyWolf13@users.noreply.github.com> Date: Fri, 21 Nov 2025 09:57:43 +0100 Subject: [PATCH] Refactor qbittorrent-exporter.sh to remove redundancy Removed duplicate function source calls and header_info invocation. --- tools/addon/qbittorrent-exporter.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/addon/qbittorrent-exporter.sh b/tools/addon/qbittorrent-exporter.sh index b7d5f3703..8ba93c845 100644 --- a/tools/addon/qbittorrent-exporter.sh +++ b/tools/addon/qbittorrent-exporter.sh @@ -4,6 +4,9 @@ # Author: CrazWolf13 # License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/core.func) +source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/tools.func) +header_info APP="qbittorrent-exporter" INSTALL_PATH="/opt/qbittorrent-exporter/src/qbittorrent-exporter" @@ -31,10 +34,6 @@ else exit 1 fi -header_info -source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/core.func) -source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/tools.func) - # Existing installation if [[ -f "$INSTALL_PATH" ]]; then echo -e "${YW}⚠️ ${APP} is already installed.${CL}"