mirror of
https://github.com/danbulant/nekofetch
synced 2026-07-08 20:40:59 +00:00
Use -n instead of ! -z
This commit is contained in:
parent
1dd055787f
commit
be00f74518
1 changed files with 1 additions and 1 deletions
|
|
@ -51,7 +51,7 @@ else
|
||||||
imgurl="https://nekos.life/api/v2/img/neko"
|
imgurl="https://nekos.life/api/v2/img/neko"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -z "$use_height" ]; then
|
if [ -n "$use_height" ]; then
|
||||||
height="$use_height"
|
height="$use_height"
|
||||||
else
|
else
|
||||||
height="$(($(stty size | awk '{print $1}') - 5))"
|
height="$(($(stty size | awk '{print $1}') - 5))"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue