mirror of
https://github.com/erkin/ponysay.git
synced 2024-11-25 05:47:59 +01:00
using truncater if found
This commit is contained in:
parent
986d158bfe
commit
518058c3e5
1 changed files with 1 additions and 1 deletions
2
ponysay
2
ponysay
|
@ -44,7 +44,7 @@ say() {
|
|||
# Ponies use UTF-8 drawing characters. Prevent a Perl warning.
|
||||
export PERL_UNICODE=S
|
||||
|
||||
exec "$cmd" -f "$pony" "${wrap:+-W$wrap}"
|
||||
exec "$cmd" -f "$pony" "${wrap:+-W$wrap}" | (ponysaytruncater `tput cols || echo 0` 2>/dev/null || ./ponysaytruncater `tput cols || echo 0` 2>/dev/null || cat)
|
||||
}
|
||||
|
||||
while getopts f:W:lhv OPT
|
||||
|
|
Loading…
Reference in a new issue