- 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#2012Closes#1984
* 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
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?
* 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.