Skip to content

Commit 53a09fc

Browse files
committed
highlight info in the logs
1 parent 12fb351 commit 53a09fc

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

entrypoint.sh

+8-4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
set -e
44

5+
info() {
6+
echo -e "\033[1;34m$1\033[0m"
7+
}
8+
59
warn() {
610
echo "::warning :: $1"
711
}
@@ -32,7 +36,7 @@ fi
3236

3337
if [ -n "$extra_system_packages" ]; then
3438
for pkg in $extra_system_packages; do
35-
echo "Install $pkg by apk"
39+
info "Install $pkg by apk"
3640
apk --no-cache add "$pkg"
3741
done
3842
fi
@@ -46,7 +50,7 @@ if [ -n "$working_directory" ]; then
4650
fi
4751

4852
if [ -n "$pre_compile" ]; then
49-
echo "Run pre compile commands"
53+
info "Run pre compile commands"
5054
eval "$pre_compile"
5155
fi
5256

@@ -55,7 +59,7 @@ echo "$root_file" | while IFS= read -r f; do
5559
continue
5660
fi
5761

58-
echo "Compile $f"
62+
info "Compile $f"
5963

6064
if [ ! -f "$f" ]; then
6165
error "File '$f' cannot be found from the directory '$PWD'."
@@ -66,6 +70,6 @@ echo "$root_file" | while IFS= read -r f; do
6670
done
6771

6872
if [ -n "$post_compile" ]; then
69-
echo "Run post compile commands"
73+
info "Run post compile commands"
7074
eval "$post_compile"
7175
fi

0 commit comments

Comments
 (0)