Refactor qbittorrent-exporter.sh to remove redundancy
Removed duplicate function source calls and header_info invocation.
This commit is contained in:
parent
e7006f788d
commit
1cc22bd070
@ -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}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user