Use absolute path for go commands in script

This commit is contained in:
Tobias 2025-11-21 10:18:18 +01:00 committed by GitHub
parent 4a1d947ca7
commit 2b03bde3c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -61,9 +61,9 @@ if [[ -f "$INSTALL_PATH" ]]; then
fetch_and_deploy_gh_release "qbittorrent-exporter" "martabal/qbittorrent-exporter"
setup_go
cd /opt/qbittorrent-exporter
go get -d -v
/usr/local/bin/go get -d -v
cd src
go build -o ./qbittorrent-exporter
/usr/local/bin/go build -o ./qbittorrent-exporter
msg_ok "Updated ${APP}"
exit 0
else
@ -93,9 +93,9 @@ msg_info "Installing ${APP} on ${OS}"
fetch_and_deploy_gh_release "qbittorrent-exporter" "martabal/qbittorrent-exporter"
setup_go
cd /opt/qbittorrent-exporter
go get -d -v
/usr/local/bin/go get -d -v
cd src
go build -o ./qbittorrent-exporter
/usr/local/bin/go build -o ./qbittorrent-exporter
msg_ok "Installed ${APP}"
msg_info "Creating configuration"