Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Remove '' variable since it was pointless
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanaraps committed Jun 2, 2016
1 parent bdc445c commit 4a431b4
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions neofetch
Original file line number Diff line number Diff line change
Expand Up @@ -2023,8 +2023,8 @@ getcols () {
spaces="$(printf "%${block_height}s")"

# Convert the spaces into rows of blocks.
[ ! -z "$blocks" ] && cols+=${spaces// /${blocks}${clear}nl}
[ ! -z "$blocks2" ] && cols+=${spaces// /${blocks2}${clear}nl}
[ ! -z "$blocks" ] && cols+=${spaces// /${blocks}\033[0mnl}
[ ! -z "$blocks2" ] && cols+=${spaces// /${blocks2}\033[0mnl}

# Add newlines to the string.
cols=${cols%%'nl'}
Expand Down Expand Up @@ -2411,7 +2411,7 @@ info () {
;;

*)
string="${subtitle_color}${bold}${subtitle}${clear}"
string="${subtitle_color}${bold}${subtitle}\033[0m"
string+="${colon_color}: ${info_color}${output}"
length=$((${#subtitle} + ${#output} + 2))
;;
Expand All @@ -2421,7 +2421,7 @@ info () {
[ -z "$2" ] && string=${string/*: }

# Print the string
printf "%b%s\n" "${padding}${string}${clear}"
printf "%b%s\n" "${padding}${string}\033[0m"
}

# }}}
Expand All @@ -2434,13 +2434,13 @@ prin () {
length=${#1}

else
string="${subtitle_color}${bold}${1}${clear}"
string="${subtitle_color}${bold}${1}\033[0m"
string+="${colon_color}: ${info_color}${2}"
length=$((${#subtitle} + ${#2} + 1))
fi

# Print the info
printf "%b%s\n" "${padding}${string}${clear}"
printf "%b%s\n" "${padding}${string}\033[0m"
}

# }}}
Expand Down Expand Up @@ -2706,8 +2706,6 @@ getlinebreak () {

# }}}

clear="\033[0m"


# }}}

Expand Down Expand Up @@ -2798,7 +2796,7 @@ bar() {
bar="$(color fg)[$bar"
fi

printf "%b%s\n" "${bar}${clear}"
printf "%b%s\n" "${bar}\033[0m"
}

# }}}
Expand Down

0 comments on commit 4a431b4

Please sign in to comment.