From cd5930b52b6bbcfbd28a00b8dd1131349048aba3 Mon Sep 17 00:00:00 2001 From: Aleksandr Chebotov <47745270+al-cheb@users.noreply.github.com> Date: Thu, 1 Apr 2021 15:15:59 +0300 Subject: [PATCH] [ubuntu] suppress tar verbose messages (#3075) --- images/linux/scripts/installers/aliyun-cli.sh | 2 +- images/linux/scripts/installers/aws-sam-cli.sh | 2 +- images/linux/scripts/installers/azcopy.sh | 2 +- images/linux/scripts/installers/git.sh | 2 +- images/linux/scripts/installers/oc.sh | 2 +- images/linux/scripts/installers/oras-cli.sh | 2 +- images/linux/scripts/installers/phantomjs.sh | 2 +- images/linux/scripts/installers/pulumi.sh | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/images/linux/scripts/installers/aliyun-cli.sh b/images/linux/scripts/installers/aliyun-cli.sh index 251834ec6..477fcffcb 100644 --- a/images/linux/scripts/installers/aliyun-cli.sh +++ b/images/linux/scripts/installers/aliyun-cli.sh @@ -7,7 +7,7 @@ # Install Alibaba Cloud CLI URL=$(curl -s https://api.github.com/repos/aliyun/aliyun-cli/releases/latest | jq -r '.assets[].browser_download_url | select(contains("aliyun-cli-linux"))') wget -P /tmp $URL -tar xzvf /tmp/aliyun-cli-linux-*-amd64.tgz +tar xzf /tmp/aliyun-cli-linux-*-amd64.tgz mv aliyun /usr/local/bin invoke_tests "CLI.Tools" "Aliyun CLI" diff --git a/images/linux/scripts/installers/aws-sam-cli.sh b/images/linux/scripts/installers/aws-sam-cli.sh index b6947ce2a..cface58d4 100644 --- a/images/linux/scripts/installers/aws-sam-cli.sh +++ b/images/linux/scripts/installers/aws-sam-cli.sh @@ -9,7 +9,7 @@ TarballUrl=$(curl -s https://api.github.com/repos/aws/aws-sam-cli/releases/latest | jq -r '.tarball_url') TarballPath="/tmp/aws-sam-cli.tar.gz" wget $TarballUrl -O $TarballPath -tar -xzvf $TarballPath -C /tmp +tar -xzf $TarballPath -C /tmp cd /tmp/aws-aws-sam-cli* mkdir /opt/python-aws-sam-cli diff --git a/images/linux/scripts/installers/azcopy.sh b/images/linux/scripts/installers/azcopy.sh index af5e5916f..e8fc5fe4b 100644 --- a/images/linux/scripts/installers/azcopy.sh +++ b/images/linux/scripts/installers/azcopy.sh @@ -8,7 +8,7 @@ source $HELPER_SCRIPTS/install.sh # Install AzCopy10 download_with_retries "https://aka.ms/downloadazcopy-v10-linux" "/tmp" "azcopy.tar.gz" -tar zxvf /tmp/azcopy.tar.gz --strip-components=1 -C /tmp +tar xzf /tmp/azcopy.tar.gz --strip-components=1 -C /tmp mv /tmp/azcopy /usr/local/bin/azcopy chmod +x /usr/local/bin/azcopy # Create azcopy 10 alias for backward compatibility diff --git a/images/linux/scripts/installers/git.sh b/images/linux/scripts/installers/git.sh index 316fa08aa..e620f68f7 100644 --- a/images/linux/scripts/installers/git.sh +++ b/images/linux/scripts/installers/git.sh @@ -25,7 +25,7 @@ tmp_hub="/tmp/hub" mkdir -p "$tmp_hub" url=$(curl -s https://api.github.com/repos/github/hub/releases/latest | jq -r '.assets[].browser_download_url | select(contains("hub-linux-amd64"))') download_with_retries "$url" "$tmp_hub" -tar xzvf "$tmp_hub"/hub-linux-amd64-*.tgz --strip-components 1 -C "$tmp_hub" +tar xzf "$tmp_hub"/hub-linux-amd64-*.tgz --strip-components 1 -C "$tmp_hub" mv "$tmp_hub"/bin/hub /usr/local/bin # Add well-known SSH host keys to known_hosts diff --git a/images/linux/scripts/installers/oc.sh b/images/linux/scripts/installers/oc.sh index 8330f12fb..0aa39f38f 100644 --- a/images/linux/scripts/installers/oc.sh +++ b/images/linux/scripts/installers/oc.sh @@ -10,6 +10,6 @@ source $HELPER_SCRIPTS/install.sh DOWNLOAD_URL="https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest/openshift-client-linux.tar.gz" PACKAGE_TAR_NAME="oc.tar.gz" download_with_retries $DOWNLOAD_URL "/tmp" $PACKAGE_TAR_NAME -tar xvzf "/tmp/$PACKAGE_TAR_NAME" -C "/usr/local/bin" +tar xzf "/tmp/$PACKAGE_TAR_NAME" -C "/usr/local/bin" invoke_tests "CLI.Tools" "OC CLI" \ No newline at end of file diff --git a/images/linux/scripts/installers/oras-cli.sh b/images/linux/scripts/installers/oras-cli.sh index 024228a86..37b335594 100644 --- a/images/linux/scripts/installers/oras-cli.sh +++ b/images/linux/scripts/installers/oras-cli.sh @@ -14,6 +14,6 @@ ORAS_CLI_ARCHIVE=$(basename $ORAS_CLI_DOWNLOAD_URL) # Install ORAS CLI cd /tmp download_with_retries $ORAS_CLI_DOWNLOAD_URL -tar -zxvf $ORAS_CLI_ARCHIVE -C /usr/local/bin oras +tar xzf $ORAS_CLI_ARCHIVE -C /usr/local/bin oras invoke_tests "CLI.Tools" "Oras CLI" diff --git a/images/linux/scripts/installers/phantomjs.sh b/images/linux/scripts/installers/phantomjs.sh index 5eb4b291d..c8b231408 100644 --- a/images/linux/scripts/installers/phantomjs.sh +++ b/images/linux/scripts/installers/phantomjs.sh @@ -8,7 +8,7 @@ apt-get install -y chrpath libssl-dev libxft-dev libfreetype6 libfreetype6-dev libfontconfig1 libfontconfig1-dev PHANTOM_JS=phantomjs-2.1.1-linux-x86_64 wget https://bitbucket.org/ariya/phantomjs/downloads/$PHANTOM_JS.tar.bz2 -tar xvjf $PHANTOM_JS.tar.bz2 +tar xjf $PHANTOM_JS.tar.bz2 mv $PHANTOM_JS /usr/local/share ln -sf /usr/local/share/$PHANTOM_JS/bin/phantomjs /usr/local/bin diff --git a/images/linux/scripts/installers/pulumi.sh b/images/linux/scripts/installers/pulumi.sh index 12d5f9ce3..e0081349f 100644 --- a/images/linux/scripts/installers/pulumi.sh +++ b/images/linux/scripts/installers/pulumi.sh @@ -11,6 +11,6 @@ source $HELPER_SCRIPTS/install.sh VERSION=$(curl --fail --silent -L "https://www.pulumi.com/latest-version") TARBALL_URL="https://get.pulumi.com/releases/sdk/pulumi-v${VERSION}-linux-x64.tar.gz" download_with_retries ${TARBALL_URL} "/tmp" pulumi-v${VERSION}.tar.gz -tar --strip=1 -xvf /tmp/pulumi-v${VERSION}.tar.gz -C /usr/local/bin +tar --strip=1 -xf /tmp/pulumi-v${VERSION}.tar.gz -C /usr/local/bin invoke_tests "Tools" "Pulumi"