Commit Graph

17 Commits

Author SHA1 Message Date
Daniel Lo Nigro
6a317c276e Convert scripts/install-latest.sh to a shim that loads the real script 2016-12-14 17:07:48 +11:00
Denis Gorbachev
2a0afc7321 Fix which check during yarn install (#2061) (#2071) 2016-11-29 18:49:51 +06:00
Daniel Lo Nigro
42b47592ed Fixes two issues with the install script: (#2027)
- Old versions of Mac OS (10.10 and below) require the `-t` option for `mktemp`
 - The check for GPG wasn't returning correctly, and tried to run GPG even when not available

Closes #2012
Closes #1984
2016-11-24 15:45:43 -08:00
Daniel Lo Nigro
47ffc523d0 Verify GPG signature in installation script (#1949)
* Verify GPG signature in installation script

* Add YARN_GPG environment variable for omitting GPG check
2016-11-21 22:33:08 -08:00
Alan Wong
5be113bb9c Add --version flag to install script (#1928)
* Add `--version` flag to install script

* Lower case variable names

* Declare `latest_url` as a local
2016-11-17 20:35:14 -08:00
Sebastian McKenzie
15d011274e Add automatic check for updates that nags the user when there's a new version available (#1429)
* Add automatic check for updates that nags the user when there's a new version available - fixes #1138

* remove self-update

* add support for updating yarn to tarball installer

* use new installationMethod package.json value to output update command

* address comments from @Daniel15

* remove self update tests
2016-11-14 20:22:21 +00:00
Daniel Lo Nigro
d225ba4aa0 Revert #1553 and instead just use Bash explicitly (#1580) 2016-10-31 20:49:35 -07:00
Daniel Lo Nigro
43cc69c016 Add --nightly flag to install script (#1554) 2016-10-31 14:10:14 +00:00
Daniel Lo Nigro
4400b77e89 Fix colour codes in install script (#1553) 2016-10-31 14:09:48 +00:00
Alexander Vagin
ae0caa340b Do not exit 1 if yarn already installed (#829)
I think it's bad idea to exit 1 in this case - because this script can't be used in pipeline or in ansible. Throwing exception breaks next movements. If Yarn already installed this script - it will warn and normally exited with exit code 0.
What do you think?
2016-10-14 18:42:57 +01:00
Hasit Mistry
16b4e3b9f3 Handle installation for 'fish' shell (#690)
* Handle installation for 'fish' shell

'fish' is a popular shell. This commit adds support for proper detection and installation of yarn in 'fish' shell. If the detected shell is 'fish', add path to ~/.yarn/bin in $HOME/.config/fish/config.fish file.

* Use a more modern way of setting $PATH in fish

Set `~/.yarn/bin` in `$fish_user_paths` instead of setting it in `~/.config/fish/config.fish` file.

See [suggestion from fish documentation](https://github.com/fish-shell/fish-shell/issues/527#issuecomment-13811988) for more reference.

* Run command to set $fish_user_paths instead of evaluating a string.
2016-10-12 11:25:33 +09:00
David Brear
131bc3ada5 changed tilde to home to fix for .zshrc (#625) 2016-10-11 17:16:55 +01:00
Sebastian McKenzie
c5472c3f92 alert users that we edited their profile with PATH 2016-10-11 16:47:32 +01:00
Sebastian McKenzie
25ed711e1d don't remove tarball before we extract it... 2016-10-11 16:05:28 +01:00
Sebastian McKenzie
26de4f0d3a follow redirects 2016-10-11 15:57:06 +01:00
Sebastian McKenzie
057b78bfe4 Change .yarn cache directory name (#592) 2016-10-11 12:19:32 +01:00
Sebastian McKenzie
453d396235 Tarball install (#568)
* rename yarn package to yarnpkg

* add install-latest script
2016-10-10 14:38:02 +01:00