diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2019-10-01 15:03:56 +0300 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2019-10-01 15:03:56 +0300 |
| commit | b7c7bc6c4cc39091a0a1c69938383c6083e2c026 (patch) | |
| tree | 37fad0ca92717dab8916f45295698f9d893ee0e3 | |
| parent | 11d1c2e7897dc5759b87b70a6ed04c691a802340 (diff) | |
| download | pfetch-b7c7bc6c4cc39091a0a1c69938383c6083e2c026.tar.gz | |
pfetch: fix bug
| -rwxr-xr-x | pfetch | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |
