Skip to content

Commit

Permalink
Fix colourize=0
Browse files Browse the repository at this point in the history
  • Loading branch information
jamielinux committed Sep 8, 2020
1 parent 3986d2f commit b3fa682
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bashmount
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ fi
# }}}

# {{{ ··· PRINTING FUNCTIONS
unset ALL_OFF BOLD BLUE GREEN RED
if (( colourize )); then
if tput setaf 0 >/dev/null 2>&1; then
declare -r ALL_OFF="$(tput sgr0)"
Expand All @@ -127,6 +126,8 @@ if (( colourize )); then
declare -r GREEN="${BOLD}\e[1;32m"
declare -r RED="${BOLD}\e[1;31m"
fi
else
declare -r ALL_OFF="" BOLD="" BLUE="" GREEN="" RED=""
fi
declare -r ARROW="==>"

Expand Down

0 comments on commit b3fa682

Please sign in to comment.