Fixed colon bug and fixed underline length
This commit is contained in:
parent
7d9ce8923e
commit
60e8f2a016
5
fetch.sh
5
fetch.sh
|
@ -725,8 +725,9 @@ printinfo () {
|
||||||
case "$info" in
|
case "$info" in
|
||||||
echo:*:*)
|
echo:*:*)
|
||||||
info=${function#*: }
|
info=${function#*: }
|
||||||
subtitle=${function%:*}
|
subtitle=${function/:*/}
|
||||||
string="${bold}${subtitle_color}${subtitle}${clear}${colon_color}: ${info_color}${info}"
|
string="${bold}${subtitle_color}${subtitle}${clear}${colon_color}: ${info_color}${info}"
|
||||||
|
length=${#function}
|
||||||
;;
|
;;
|
||||||
|
|
||||||
echo:*)
|
echo:*)
|
||||||
|
@ -766,7 +767,7 @@ printinfo () {
|
||||||
|
|
||||||
*:*)
|
*:*)
|
||||||
string="${bold}${subtitle_color}${subtitle}${clear}${colon_color}: ${info_color}${output}"
|
string="${bold}${subtitle_color}${subtitle}${clear}${colon_color}: ${info_color}${output}"
|
||||||
length=${#subtitle}
|
length=$((${#subtitle} + ${#output} + 2))
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
|
|
Reference in New Issue