File tree Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -17,22 +17,29 @@ function init_vars() {
17
17
}
18
18
19
19
function local_artifact_mirror() {
20
- make -C local-artifact-mirror build-ttl.sh
20
+ make -C local-artifact-mirror build-ttl.sh 2>&1 | prefix_output " LAM "
21
21
cp local-artifact-mirror/build/image " local-artifact-mirror/build/image-$EC_VERSION "
22
22
}
23
23
24
24
function operator() {
25
25
make -C operator build-ttl.sh build-chart-ttl.sh \
26
26
PACKAGE_VERSION=" $EC_VERSION " \
27
- VERSION=" $EC_VERSION "
27
+ VERSION=" $EC_VERSION " 2>&1 | prefix_output " OPERATOR "
28
28
cp operator/build/image " operator/build/image-$EC_VERSION "
29
29
cp operator/build/chart " operator/build/chart-$EC_VERSION "
30
30
}
31
31
32
32
function main() {
33
33
init_vars
34
- local_artifact_mirror
35
- operator
34
+
35
+ local_artifact_mirror &
36
+ lam_pid=$!
37
+
38
+ operator &
39
+ operator_pid=$!
40
+
41
+ wait $lam_pid
42
+ wait $operator_pid
36
43
}
37
44
38
45
main " $@ "
Original file line number Diff line number Diff line change @@ -9,6 +9,11 @@ function fail() {
9
9
exit 1
10
10
}
11
11
12
+ function prefix_output() {
13
+ local prefix=$1
14
+ sed " s/^/[$prefix ] /"
15
+ }
16
+
12
17
function require() {
13
18
if [ -z " $2 " ]; then
14
19
fail " validation failed: $1 unset"
You can’t perform that action at this time.
0 commit comments