mirror of
https://github.com/erkin/ponysay.git
synced 2025-02-07 21:46:42 +01:00
See comment on last edit.
This commit is contained in:
parent
2f1566b74f
commit
72b9eebe93
1 changed files with 1 additions and 1 deletions
2
ponysay
2
ponysay
|
@ -79,7 +79,7 @@ say() {
|
||||||
if [ "$PONYSAY_SHELL_LINES" = "" ]; then
|
if [ "$PONYSAY_SHELL_LINES" = "" ]; then
|
||||||
PONYSAY_SHELL_LINES=2
|
PONYSAY_SHELL_LINES=2
|
||||||
fi
|
fi
|
||||||
head --lines=`( \`stty size <&2 | cut -d ' ' -f 1\` - $PONYSAY_SHELL_LINES )`
|
head --lines=$(( `stty size <&2 | cut -d ' ' -f 1` - $PONYSAY_SHELL_LINES ))
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ "$TERM" = "linux" ] || [ "$PONYSAY_TRUNCATE_HEIGHT" = 'yes' ] || [ "$PONYSAY_TRUNCATE_HEIGHT" = 'y' ] || [ "$PONYSAY_TRUNCATE_HEIGHT" = '1' ]; then
|
if [ "$TERM" = "linux" ] || [ "$PONYSAY_TRUNCATE_HEIGHT" = 'yes' ] || [ "$PONYSAY_TRUNCATE_HEIGHT" = 'y' ] || [ "$PONYSAY_TRUNCATE_HEIGHT" = '1' ]; then
|
||||||
|
|
Loading…
Reference in a new issue