Remove '' variable since it was pointless

This commit is contained in:
Dylan Araps 2016-06-02 21:11:33 +10:00
parent bdc445cc6f
commit 4a431b40f8
No known key found for this signature in database
GPG Key ID: B69EE98D4CF5133A
1 changed files with 7 additions and 9 deletions

View File

@ -2023,8 +2023,8 @@ getcols () {
spaces="$(printf "%${block_height}s")" spaces="$(printf "%${block_height}s")"
# Convert the spaces into rows of blocks. # Convert the spaces into rows of blocks.
[ ! -z "$blocks" ] && cols+=${spaces// /${blocks}${clear}nl} [ ! -z "$blocks" ] && cols+=${spaces// /${blocks}\033[0mnl}
[ ! -z "$blocks2" ] && cols+=${spaces// /${blocks2}${clear}nl} [ ! -z "$blocks2" ] && cols+=${spaces// /${blocks2}\033[0mnl}
# Add newlines to the string. # Add newlines to the string.
cols=${cols%%'nl'} cols=${cols%%'nl'}
@ -2411,7 +2411,7 @@ info () {
;; ;;
*) *)
string="${subtitle_color}${bold}${subtitle}${clear}" string="${subtitle_color}${bold}${subtitle}\033[0m"
string+="${colon_color}: ${info_color}${output}" string+="${colon_color}: ${info_color}${output}"
length=$((${#subtitle} + ${#output} + 2)) length=$((${#subtitle} + ${#output} + 2))
;; ;;
@ -2421,7 +2421,7 @@ info () {
[ -z "$2" ] && string=${string/*: } [ -z "$2" ] && string=${string/*: }
# Print the string # Print the string
printf "%b%s\n" "${padding}${string}${clear}" printf "%b%s\n" "${padding}${string}\033[0m"
} }
# }}} # }}}
@ -2434,13 +2434,13 @@ prin () {
length=${#1} length=${#1}
else else
string="${subtitle_color}${bold}${1}${clear}" string="${subtitle_color}${bold}${1}\033[0m"
string+="${colon_color}: ${info_color}${2}" string+="${colon_color}: ${info_color}${2}"
length=$((${#subtitle} + ${#2} + 1)) length=$((${#subtitle} + ${#2} + 1))
fi fi
# Print the info # Print the info
printf "%b%s\n" "${padding}${string}${clear}" printf "%b%s\n" "${padding}${string}\033[0m"
} }
# }}} # }}}
@ -2706,8 +2706,6 @@ getlinebreak () {
# }}} # }}}
clear="\033[0m"
# }}} # }}}
@ -2798,7 +2796,7 @@ bar() {
bar="$(color fg)[$bar" bar="$(color fg)[$bar"
fi fi
printf "%b%s\n" "${bar}${clear}" printf "%b%s\n" "${bar}\033[0m"
} }
# }}} # }}}