Fix comma issues
This commit is contained in:
parent
cec15d9fb2
commit
f1cc911e02
1 changed files with 10 additions and 10 deletions
18
neofetch
18
neofetch
|
@ -590,18 +590,18 @@ getuptime () {
|
|||
hours=$((uptime / 3600%24))
|
||||
days=$((uptime / 86400))
|
||||
|
||||
days=" $days days,"
|
||||
hours=" $hours hours,"
|
||||
mins=" $mins minutes"
|
||||
days=" $days days"
|
||||
hours=", $hours hours"
|
||||
mins=", $mins minutes"
|
||||
|
||||
days=${days/ 0 days,}
|
||||
days=${days/ 1 days/ 1 day}
|
||||
days=${days/ 0 days}
|
||||
days=${days/, 1 days/, 1 day}
|
||||
|
||||
hours=${hours/ 0 hours,}
|
||||
hours=${hours/ 1 hours/ 1 hour}
|
||||
hours=${hours/, 0 hours}
|
||||
hours=${hours/, 1 hours/, 1 hour}
|
||||
|
||||
mins=${mins/ 0 minutes}
|
||||
mins=${mins/ 1 minutes/ 1 minute}
|
||||
mins=${mins/, 0 minutes}
|
||||
mins=${mins/, 1 minutes/, 1 minute}
|
||||
|
||||
uptime="up ${days}${hours}${mins}"
|
||||
;;
|
||||
|
|
Loading…
Reference in a new issue