mirror of
https://github.com/danbulant/nekofetch
synced 2026-07-07 12:00:43 +00:00
Change height calculation to use stty instead of tput
This commit is contained in:
parent
e9f6e6185e
commit
6428c4cca1
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ case "$1" in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
height=${2:-$(($(tput lines) - 5))}
|
height=${2:-$(($(stty size | awk '{print $1}') - 5))}
|
||||||
echo "Using height $height"
|
echo "Using height $height"
|
||||||
|
|
||||||
url=$(curl -fsSL "$imgurl" | jq -r ".url")
|
url=$(curl -fsSL "$imgurl" | jq -r ".url")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue