Skip to content

Instantly share code, notes, and snippets.

@dgertych-monterail
Last active December 13, 2016 15:45
Show Gist options
  • Select an option

  • Save dgertych-monterail/e4451d6e3b8a029f139143cdcea32098 to your computer and use it in GitHub Desktop.

Select an option

Save dgertych-monterail/e4451d6e3b8a029f139143cdcea32098 to your computer and use it in GitHub Desktop.
#!/bin/bash -xe
YARN_VERSION=${YARN_VERSION:-0.17.10}
if [[ ! -e ~/.yarn/bin/yarn || $(yarn --version) != "${YARN_VERSION}" ]]; then
echo "Download and install Yarn."
curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version $YARN_VERSION
else
echo "The correct version of Yarn is already installed."
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment