Add silent() helper for calling without debugging output
This commit is contained in:
parent
ef8c364ef1
commit
6ec57c0bde
1 changed files with 7 additions and 3 deletions
|
@ -9,15 +9,19 @@ RUNTIME="/tmp"
|
||||||
STORE="${RUNTIME}/store"
|
STORE="${RUNTIME}/store"
|
||||||
|
|
||||||
out() {
|
out() {
|
||||||
echo -e "${YELLOW}:: $*${COLOR_OFF}"
|
[[ -z "$DEBUG_OUTPUT_OFF" ]] && echo -e "${YELLOW}:: $*${COLOR_OFF}"
|
||||||
}
|
}
|
||||||
|
|
||||||
success() {
|
success() {
|
||||||
echo -e "${GREEN}>> $*${COLOR_OFF}"
|
[[ -z "$DEBUG_OUTPUT_OFF" ]] && echo -e "${GREEN}>> $*${COLOR_OFF}"
|
||||||
}
|
}
|
||||||
|
|
||||||
err() {
|
err() {
|
||||||
echo -e "${RED}!! $*${COLOR_OFF}"
|
[[ -z "$DEBUG_OUTPUT_OFF" ]] && echo -e "${RED}!! $*${COLOR_OFF}"
|
||||||
|
}
|
||||||
|
|
||||||
|
silent() {
|
||||||
|
DEBUG_OUTPUT_OFF=1 $*
|
||||||
}
|
}
|
||||||
|
|
||||||
imag-store() {
|
imag-store() {
|
||||||
|
|
Loading…
Reference in a new issue