mirror of
https://github.com/asdf-vm/asdf-nodejs.git
synced 2024-10-06 07:42:08 +08:00
Merge pull request #210 from mortax/macostac
`list-all` no longer works on macOS
This commit is contained in:
commit
3f4950047b
@ -9,8 +9,7 @@ Node.js plugin for [asdf](https://github.com/asdf-vm/asdf) version manager
|
||||
## Requirements
|
||||
|
||||
|
||||
### MacOS
|
||||
* [GNU Core Utils](http://www.gnu.org/software/coreutils/coreutils.html) - `brew install coreutils`
|
||||
### macOS
|
||||
* [GnuPG](http://www.gnupg.org) - `brew install gpg`
|
||||
* awk - any posix compliant implementation (tested on gawk `brew install gawk`)
|
||||
|
||||
|
@ -1,5 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# simulate tac on macOS
|
||||
if [[ $(uname -s) = Darwin ]]; then
|
||||
tac() {
|
||||
tail -r "$@"
|
||||
}
|
||||
fi
|
||||
|
||||
set -o nounset -o pipefail -o errexit
|
||||
|
||||
# shellcheck source=../lib/utils.sh
|
||||
|
Loading…
Reference in New Issue
Block a user