mirror of
https://github.com/dylanaraps/pfetch.git
synced 2026-11-20 19:31:45 +00:00
pfetch: fix bug
This commit is contained in:
1 parent
11d1c2e789
commit
b7c7bc6c4c
1 file changed
+1
-1
@@ -1372,7 +1372,7 @@ main() {
|
|||||||
# N lines.
|
# N lines.
|
||||||
#
|
#
|
||||||
# This was a ternary operation but they aren't supported in Minix's shell.
|
# 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))
|
cursor_pos=$((ascii_height - info_height))
|
||||||
|
|
||||||
# Print '$cursor_pos' amount of newlines to correctly position the
|
# Print '$cursor_pos' amount of newlines to correctly position the
|
||||||
|
|||||||
Reference in new issue
Block a user