diff options
| author | Dylan Araps <dylan.araps@gmail.com> | 2019-09-28 14:56:12 +0300 |
|---|---|---|
| committer | Dylan Araps <dylan.araps@gmail.com> | 2019-09-28 14:56:12 +0300 |
| commit | be6b5ae5ed25a7348590689db0a4e0da9e541e12 (patch) | |
| tree | f32452644a8b687a0b1ef084b123152bd8ce7f12 | |
| parent | c6f46d54286db56e08d1d2b6adef2733d354cf5d (diff) | |
| download | pfetch-be6b5ae5ed25a7348590689db0a4e0da9e541e12.tar.gz | |
minix's sh requires all variables have default values
| -rwxr-xr-x | pfetch | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -95,7 +95,7 @@ log() { printf '[3%sm%s[m\n' "${PF_COL2-7}" "$info" # Keep track of the number of times 'log()' has been run. - info_height=$((info_height + 1)) + info_height=$((${info_height:-0} + 1)) } get_title() { @@ -1045,7 +1045,7 @@ get_ascii() { # information. The 'sed' is used to strip '[3Xm' color codes from # the ascii art so they don't affect the width variable. while read -r line; do - ascii_height=$((ascii_height + 1)) + ascii_height=$((${ascii_height:-0} + 1)) # This was a ternary operation but they aren't supported in # MINIX's shell. |
