diff --git a/pkgroot/usr/bin/nekofetch b/pkgroot/usr/bin/nekofetch index 4b8bff3..60f4645 100755 --- a/pkgroot/usr/bin/nekofetch +++ b/pkgroot/usr/bin/nekofetch @@ -24,7 +24,7 @@ case "$1" in ;; esac -height=${2:-$(($(stty size | awk '{print $1}') - 5))} +echo "$2" | grep -qE '^[0-9]+$' && height="$2" || height="$(($(stty size | awk '{print $1}') - 5))" echo "Using height $height" url=$(curl -fsSL "$imgurl" | jq -r ".url")