Easy way to find start of string
This commit is contained in:
parent
382a018fb4
commit
9871e65148
1 changed files with 4 additions and 4 deletions
8
neofetch
8
neofetch
|
@ -590,11 +590,11 @@ getuptime () {
|
||||||
hours=$((uptime / 3600%24))
|
hours=$((uptime / 3600%24))
|
||||||
days=$((uptime / 86400))
|
days=$((uptime / 86400))
|
||||||
|
|
||||||
days="$days days,"
|
days=" $days days,"
|
||||||
hours="$hours hours,"
|
hours=" $hours hours,"
|
||||||
mins="$mins minutes"
|
mins=" $mins minutes"
|
||||||
|
|
||||||
uptime="up ${days/0 days,} ${hours/0 hours,} ${mins/0 minutes}"
|
uptime="up${days/ 0 days,}${hours/ 0 hours,}${mins/ 0 minutes}"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue