Merge pull request #210 from mortax/macostac

`list-all` no longer works on macOS
This commit is contained in:
Trevor Brown 2021-03-12 14:37:33 -05:00 committed by GitHub
commit 3f4950047b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 2 deletions

View File

@ -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`)

View File

@ -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