Skip to content

Commit

Permalink
bee: Minor color fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mariux committed Jan 11, 2016
1 parent 18e4712 commit b2e97de
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 11 deletions.
8 changes: 4 additions & 4 deletions src/bee-list.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ function usage() {
}

function config_init_colors() {
: ${BEE_COLOR:="no"}
if [ -t 1 ] ; then
BEE_COLOR='no'
: ${BEE_COLOR:="yes"}
if [ ! -t 1 ] ; then
BEE_COLOR="no"
fi
if [ ${BEE_COLOR} != "no" ] ; then
if [ "${BEE_COLOR}" != "no" ] ; then
COLOR_NORMAL="\\033[0;39m\\033[0;22m"
COLOR_GREEN="\\033[0;32m"
COLOR_YELLOW="\\033[0;33m"
Expand Down
8 changes: 4 additions & 4 deletions src/beelib.config.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
: ${BEE_BINDIR:=@BINDIR@}

function config_init_colors() {
: ${BEE_COLOR:="no"}
if [ -t 1 ] ; then
BEE_COLOR='no'
: ${BEE_COLOR:="yes"}
if [ ! -t 1 ] ; then
BEE_COLOR="no"
fi
if [ ${BEE_COLOR} != "no" ] ; then
if [ "${BEE_COLOR}" != "no" ] ; then
COLOR_NORMAL="\\033[0;39m\\033[0;22m"
COLOR_GREEN="\\033[0;32m"
COLOR_YELLOW="\\033[0;33m"
Expand Down
4 changes: 1 addition & 3 deletions src/beesh.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -914,15 +914,13 @@ while true ; do
esac
done

config_init_colors
config_init

echo -e "${COLOR_CYAN}BEE v${BEE_VERSION} 2009-2012"
echo -e " by Marius Tolzmann and Tobias Dreyer <{tolzmann,dreyer}@molgen.mpg.de>"
echo -e " Max Planck Institute for Molecular Genetics Berlin Dahlem"
echo -e "${COLOR_NORMAL}"

config_init

config_set_skiplist

print_info " BEE_SKIPLIST ${BEE_SKIPLIST}"
Expand Down

0 comments on commit b2e97de

Please sign in to comment.