Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions ci/env/install-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ install_shellcheck() {
local name="shellcheck-v${shellcheck_version}"
if [[ "${osname}" == "linux" || "${osname}" == "darwin" ]]; then
sudo mkdir -p /usr/local/bin || true
curl -f -s -L "https://github.com/koalaman/shellcheck/releases/download/v${shellcheck_version}/${name}.${osname}.x86_64.tar.xz" | {
curl -sSfL "https://github.com/koalaman/shellcheck/releases/download/v${shellcheck_version}/${name}.${osname}.x86_64.tar.xz" | {
sudo tar -C /usr/local/bin -x -v -J --strip-components=1 "${name}/shellcheck"
}
else
mkdir -p /usr/local/bin
curl -f -s -L -o "${name}.zip" "https://github.com/koalaman/shellcheck/releases/download/v${shellcheck_version}/${name}.zip"
curl -sSfL -o "${name}.zip" "https://github.com/koalaman/shellcheck/releases/download/v${shellcheck_version}/${name}.zip"
unzip "${name}.zip" "${name}.exe"
mv -f "${name}.exe" "/usr/local/bin/shellcheck.exe"
fi
Expand All @@ -108,7 +108,7 @@ install_nvm() {
(
cd "${NVM_HOME}"
local target="./nvm-${ver}.zip"
curl -f -s -L -o "${target}" \
curl -sSfL -o "${target}" \
"https://github.com/coreybutler/nvm-windows/releases/download/${ver}/nvm-noinstall.zip"
unzip -q -- "${target}"
rm -f -- "${target}"
Expand Down Expand Up @@ -156,13 +156,13 @@ install_node() {
if [[ -n "${BUILDKITE-}" ]] ; then
if [[ "${OSTYPE}" = darwin* ]]; then
if [[ "$(uname -m)" == "arm64" ]]; then
curl -sSL -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
curl -sSfL -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
else
curl -sSL -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
curl -sSfL -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
fi
else
# https://github.com/nodesource/distributions/blob/master/README.md#installation-instructions
curl -sSL https://deb.nodesource.com/setup_14.x | sudo -E bash -
curl -sSfL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt-get install -y nodejs
return
fi
Expand Down