Fix use of tac on macOS.

This commit is contained in:
john r. durand 2021-03-06 08:28:38 -08:00
parent 5a46614ec2
commit 6667b3165f

View File

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