Add silent() helper for calling without debugging output

This commit is contained in:
Matthias Beyer 2016-02-04 18:15:40 +01:00
parent ef8c364ef1
commit 6ec57c0bde

View file

@ -9,15 +9,19 @@ RUNTIME="/tmp"
STORE="${RUNTIME}/store"
out() {
echo -e "${YELLOW}:: $*${COLOR_OFF}"
[[ -z "$DEBUG_OUTPUT_OFF" ]] && echo -e "${YELLOW}:: $*${COLOR_OFF}"
}
success() {
echo -e "${GREEN}>> $*${COLOR_OFF}"
[[ -z "$DEBUG_OUTPUT_OFF" ]] && echo -e "${GREEN}>> $*${COLOR_OFF}"
}
err() {
echo -e "${RED}!! $*${COLOR_OFF}"
[[ -z "$DEBUG_OUTPUT_OFF" ]] && echo -e "${RED}!! $*${COLOR_OFF}"
}
silent() {
DEBUG_OUTPUT_OFF=1 $*
}
imag-store() {