1 # Common bash utilities
2 # ----------------------
22 # GitLab Pipelines log section delimiters
23 # https://gitlab.com/gitlab-org/gitlab-foss/issues/14664
26 echo -e "section_start:$(date +%s):$name\015\033[0K"
31 echo -e "section_end:$(date +%s):$name\015\033[0K"
37 echo -e "\033[${color}m${msg}\033[0m"
40 error
() { echo_color
"${RED}" "$1"; }
41 warn
() { echo_color
"${LT_BROWN}" "$1"; }
42 info
() { echo_color
"${LT_BLUE}" "$1"; }
44 fail
() { error
"error: $1"; exit 1; }
48 "$@" ||
( error
"$* failed"; return 1; )