From b7c7bc6c4cc39091a0a1c69938383c6083e2c026 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 1 Oct 2019 15:03:56 +0300 Subject: [PATCH] pfetch: fix bug --- pfetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pfetch b/pfetch index af037fe..4c31c3f 100755 --- a/pfetch +++ b/pfetch @@ -1372,7 +1372,7 @@ main() { # N lines. # # This was a ternary operation but they aren't supported in Minix's shell. - [ "$info_height" -lt "$ascii_height" ] && + [ "${info_height:-0}" -lt "${ascii_height:-0}" ] && cursor_pos=$((ascii_height - info_height)) # Print '$cursor_pos' amount of newlines to correctly position the