uptime: fix bug
This commit is contained in:
parent
1f035379ff
commit
acdfbe2063
6
neofetch
6
neofetch
|
@ -1285,9 +1285,9 @@ get_uptime() {
|
||||||
((${m/ *} == 1)) && m=${m/s}
|
((${m/ *} == 1)) && m=${m/s}
|
||||||
|
|
||||||
# Hide empty fields.
|
# Hide empty fields.
|
||||||
((${d/ *} == 0)) && unset days
|
((${d/ *} == 0)) && unset d
|
||||||
((${h/ *} == 0)) && unset hours
|
((${h/ *} == 0)) && unset h
|
||||||
((${m/ *} == 0)) && unset mins
|
((${m/ *} == 0)) && unset m
|
||||||
|
|
||||||
uptime=${d:+$d, }${h:+$h, }$m
|
uptime=${d:+$d, }${h:+$h, }$m
|
||||||
uptime=${uptime%', '}
|
uptime=${uptime%', '}
|
||||||
|
|
Reference in New Issue