From c5f10f3a1ae8766d3b6fdcce3fd02e297f2be9e4 Mon Sep 17 00:00:00 2001 From: Damien Deville Date: Mon, 12 Aug 2024 12:59:31 -0700 Subject: [PATCH] Don't print annoying pushd/popd stack --- bin/common/.local/bin/goswitch | 4 ++-- bin/common/.local/bin/nodeswitch | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/common/.local/bin/goswitch b/bin/common/.local/bin/goswitch index 3db95baa..2b3fed3d 100755 --- a/bin/common/.local/bin/goswitch +++ b/bin/common/.local/bin/goswitch @@ -25,13 +25,13 @@ if [[ ! -d $install_dir ]]; then tmpdir="$(mktemp -d)" trap 'rm -rf $tmpdir' EXIT - pushd "$tmpdir" + pushd "$tmpdir" >/dev/null curl -L "https://go.dev/dl/go${version}.${plat}-${arch}.tar.gz" -o go.tar.gz mkdir -p "$install_dir" tar -xzf go.tar.gz -C "$install_dir" --strip-components 1 - popd + popd >/dev/null fi ln -s "$install_dir" "$toolchain_dir/current" diff --git a/bin/common/.local/bin/nodeswitch b/bin/common/.local/bin/nodeswitch index f37c3c67..3bb9a5e3 100755 --- a/bin/common/.local/bin/nodeswitch +++ b/bin/common/.local/bin/nodeswitch @@ -25,13 +25,13 @@ if [[ ! -d $install_dir ]]; then tmpdir="$(mktemp -d)" trap 'rm -rf $tmpdir' EXIT - pushd "$tmpdir" + pushd "$tmpdir" >/dev/null curl -L "https://nodejs.org/download/release/v${version}/node-v${version}-${plat}-${arch}.tar.gz" -o node.tar.gz mkdir -p "$install_dir" tar -xzf node.tar.gz -C "$install_dir" --strip-components 1 - popd + popd >/dev/null fi ln -s "$install_dir" "$toolchain_dir/current"