Skip to content

Commit

Permalink
Merge pull request kubernetes#2952 from satnam6502/colour
Browse files Browse the repository at this point in the history
Avoid redeclaration errors for kube-up.sh
  • Loading branch information
brendandburns committed Dec 15, 2014
2 parents 9bc8915 + c928c43 commit f2a5457
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions cluster/kube-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@
KUBERNETES_PROVIDER=${KUBERNETES_PROVIDER:-gce}

# Some useful colors.
declare -r color_start="\033["
declare -r color_red="${color_start}0;31m"
declare -r color_yellow="${color_start}0;33m"
declare -r color_green="${color_start}0;32m"
declare -r color_norm="${color_start}0m"

if [[ -z "${color_start-}" ]]; then
declare -r color_start="\033["
declare -r color_red="${color_start}0;31m"
declare -r color_yellow="${color_start}0;33m"
declare -r color_green="${color_start}0;32m"
declare -r color_norm="${color_start}0m"
fi

0 comments on commit f2a5457

Please sign in to comment.