mirror of
https://github.com/asdf-vm/asdf-nodejs.git
synced 2024-10-06 07:42:08 +08:00
Fix use of tac on macOS.
This commit is contained in:
parent
5a46614ec2
commit
6667b3165f
@ -1,5 +1,12 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
# simulate tac on macOS
|
||||||
|
if [[ $(uname -s) = Darwin ]]; then
|
||||||
|
tac() {
|
||||||
|
tail -r "$@"
|
||||||
|
}
|
||||||
|
fi
|
||||||
|
|
||||||
set -o nounset -o pipefail -o errexit
|
set -o nounset -o pipefail -o errexit
|
||||||
|
|
||||||
# shellcheck source=../lib/utils.sh
|
# shellcheck source=../lib/utils.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user