Skip to content

Commit

Permalink
Don't print annoying pushd/popd stack
Browse files Browse the repository at this point in the history
  • Loading branch information
ddeville committed Aug 12, 2024
1 parent 22ccca9 commit c5f10f3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions bin/common/.local/bin/goswitch
Original file line number Diff line number Diff line change
Expand Up @@ -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"
4 changes: 2 additions & 2 deletions bin/common/.local/bin/nodeswitch
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit c5f10f3

Please sign in to comment.