mirror of
https://github.com/eth-p/bat-extras.git
synced 2024-10-05 09:21:57 +02:00
Fix lib.pager test breaking on CI
This commit is contained in:
parent
b98e241fca
commit
98e2077fe2
@ -25,7 +25,11 @@ pager_info() {
|
||||
|
||||
pager_test() {
|
||||
if [[ "$1" = "TTY" ]]; then
|
||||
script -q /dev/null bash "${BASH_SOURCE[0]}" --execute
|
||||
if [[ "$(uname -s)" = "Darwin" ]]; then
|
||||
script -q /dev/null bash "${BASH_SOURCE[0]}" --execute
|
||||
else
|
||||
script -q -c "bash $(printf "%q" "${BASH_SOURCE[0]}") --execute" /dev/null
|
||||
fi
|
||||
elif [[ "$1" = "FILE" ]]; then
|
||||
bash "${BASH_SOURCE[0]}" --execute | cat
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user