boxes: Move colors out to the UI file
This commit is contained in:
parent
e69441a99b
commit
2c7e6fb600
2 changed files with 5 additions and 6 deletions
|
@ -1,5 +1,10 @@
|
||||||
#!/bin/bash
|
#!/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() {
|
log() {
|
||||||
echo " [${RELEASE}] ${1}" >&2
|
echo " [${RELEASE}] ${1}" >&2
|
||||||
}
|
}
|
||||||
|
@ -12,7 +17,6 @@ info() {
|
||||||
echo -e "${OK_COLOR}==> [${RELEASE}] ${1}${NO_COLOR}"
|
echo -e "${OK_COLOR}==> [${RELEASE}] ${1}${NO_COLOR}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# TODO: Add a file lock so we can build in parallel
|
|
||||||
confirm() {
|
confirm() {
|
||||||
question=${1}
|
question=${1}
|
||||||
default=${2}
|
default=${2}
|
||||||
|
|
|
@ -8,11 +8,6 @@ if [ "$(id -u)" != "0" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
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 DISTRIBUTION="ubuntu"
|
||||||
export RELEASE=$1
|
export RELEASE=$1
|
||||||
export ARCH=$2
|
export ARCH=$2
|
||||||
|
|
Loading…
Reference in a new issue