From 2c7e6fb600b1481e4142d7d8120bd32a44165719 Mon Sep 17 00:00:00 2001 From: Fabio Rehm Date: Sun, 9 Mar 2014 18:39:41 -0300 Subject: [PATCH] boxes: Move colors out to the UI file --- boxes/common/ui.sh | 6 +++++- boxes/mk-ubuntu.sh | 5 ----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/boxes/common/ui.sh b/boxes/common/ui.sh index b2f91f8..14d9a2c 100644 --- a/boxes/common/ui.sh +++ b/boxes/common/ui.sh @@ -1,5 +1,10 @@ #!/bin/bash +export NO_COLOR='\033[0m' +export OK_COLOR='\033[32;01m' +export ERROR_COLOR='\033[31;01m' +export WARN_COLOR='\033[33;01m' + log() { echo " [${RELEASE}] ${1}" >&2 } @@ -12,7 +17,6 @@ info() { echo -e "${OK_COLOR}==> [${RELEASE}] ${1}${NO_COLOR}" } -# TODO: Add a file lock so we can build in parallel confirm() { question=${1} default=${2} diff --git a/boxes/mk-ubuntu.sh b/boxes/mk-ubuntu.sh index 765e3e3..45e61d9 100755 --- a/boxes/mk-ubuntu.sh +++ b/boxes/mk-ubuntu.sh @@ -8,11 +8,6 @@ if [ "$(id -u)" != "0" ]; then exit 1 fi -export NO_COLOR='\033[0m' -export OK_COLOR='\033[32;01m' -export ERROR_COLOR='\033[31;01m' -export WARN_COLOR='\033[33;01m' - export DISTRIBUTION="ubuntu" export RELEASE=$1 export ARCH=$2