ci: move scripts into separate directory
[openwrt/openwrt.git] / .github / workflows / scripts / ci_helpers.sh
1 #!/bin/sh
2
3 color_out() {
4 printf "\e[0;$1m%s\e[0;0m\n" "$2"
5 }
6
7 success() {
8 color_out 32 "$1"
9 }
10
11 info() {
12 color_out 36 "$1"
13 }
14
15 err() {
16 color_out 31 "$1"
17 }
18
19 warn() {
20 color_out 33 "$1"
21 }
22
23 err_die() {
24 err "$1"
25 exit 1
26 }