From aa2fcc976b0bd76194c2848a1fdc08ec728b6ad3 Mon Sep 17 00:00:00 2001 From: Adam Boutcher Date: Wed, 25 Aug 2021 10:53:08 +0100 Subject: [PATCH] Updates to statping install script, including a new quiet for curl. --- install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install.sh b/install.sh index ad6f7fc3..a7ae50a3 100755 --- a/install.sh +++ b/install.sh @@ -24,7 +24,7 @@ statping_get_tarball() { printf "$cyan> Downloading latest version for $OS $ARCH...\n$url $reset\n" # Get both the tarball and its GPG signature tarball_tmp=`mktemp -t statping.tar.gz.XXXXXXXXXX` - if curl --fail -L -o "$tarball_tmp" "$url"; then + if curl --fail -L -s -o "$tarball_tmp" "$url"; then # All this dance is because `tar --strip=1` does not work everywhere temp=$(mktemp -d statping.XXXXXXXXXX) if [ ${OS} == 'windows' ]; then @@ -32,11 +32,11 @@ statping_get_tarball() { else tar xzf $tarball_tmp -C "$temp" fi - printf "$green> Installing to $DEST/statping\n" + printf "$green> Installing to $DEST/statping-ng\n" mv "$temp"/statping "$DEST" rm -rf "$temp" rm $tarball_tmp* - printf "$cyan> Statping is now installed! $reset\n" + printf "$cyan> Statping-ng is now installed! $reset\n" printf "$white> Repo: $repo $reset\n" printf "$white> Wiki: $repo/wiki $reset\n" printf "$white> Issues: $repo/issues $reset\n" @@ -66,7 +66,7 @@ statping_brew_install() { } statping_install() { - printf "${white}Installing Statping!$reset\n" + printf "${white}Installing Statping-ng!$reset\n" getOS getArch statping_get_tarball $OS $ARCH