aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2019-09-28 15:02:44 +0300
committerDylan Araps <dylan.araps@gmail.com>2019-09-28 15:02:44 +0300
commit6b46e941cd91eaac001eba8e16189592c954d6f3 (patch)
tree19f44d6dc77cb90995bd5ab8b912a4f3d797920f
parent180c00173a8da77eb18bdca9f613f8a8a1d38bfd (diff)
downloadpfetch-6b46e941cd91eaac001eba8e16189592c954d6f3.tar.gz
fix more minixisms
-rwxr-xr-xpfetch2
1 files changed, 1 insertions, 1 deletions
diff --git a/pfetch b/pfetch
index ccc7ad6..446d311 100755
--- a/pfetch
+++ b/pfetch
@@ -1160,7 +1160,7 @@ main() {
# Print '$cursor_pos' amount of newlines to correctly position the
# cursor. This used to be a 'printf $(seq X X)' however 'seq' is only
# typically available (by default) on GNU based systems!
- while [ "${i:-0}" -le "${cursor_pos:-0}" ]; do
+ while [ "${i:=0}" -le "${cursor_pos:-0}" ]; do
printf '\n'
i=$((i + 1))
done >&6