Use -n instead of ! -z

This commit is contained in:
BBaoVanC 2021-04-29 16:51:30 -05:00
parent 1dd055787f
commit be00f74518
No known key found for this signature in database
GPG key ID: 18089E4E3CCF1D3A

View file

@ -51,7 +51,7 @@ else
imgurl="https://nekos.life/api/v2/img/neko"
fi
if [ ! -z "$use_height" ]; then
if [ -n "$use_height" ]; then
height="$use_height"
else
height="$(($(stty size | awk '{print $1}') - 5))"