From 137d80eebc15c9ff41e050483c8c603824df1685 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Sat, 8 Dec 2018 16:19:31 +0100 Subject: [PATCH] install.sh: only show progress bar for wget. --- install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index b3207e8..dab7541 100755 --- a/install.sh +++ b/install.sh @@ -5,8 +5,10 @@ VERSION=0.9.0 INSTALLDIR=/usr/local/bin CONFIGDIR=/etc/prometheus +SRC_URL=https://github.com/prometheus/haproxy_exporter/releases/download/v${VERSION}/haproxy_exporter-${VERSION}.linux-${ARCH}.tar.gz + # Download and install the binary. -wget -O- https://github.com/prometheus/haproxy_exporter/releases/download/v${VERSION}/haproxy_exporter-${VERSION}.linux-${ARCH}.tar.gz | tar zxf - +wget -q --show-progress -O- ${SRC_URL} | tar zxf - sudo mv haproxy_exporter-${VERSION}.linux-${ARCH}/haproxy_exporter ${INSTALLDIR}/haproxy_exporter-${VERSION} # Create User/Group