Skip to content

Commit bdd60e3

Browse files
committed
fix(imagebuilder): shellcheck
1 parent a564a13 commit bdd60e3

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

rootfs/imagebuilder/build

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ function clean_before_exit {
1212
trap clean_before_exit EXIT
1313

1414
function waiting_process {
15-
echo -e "\033[32m---> Waiting $1 running.\033[0m"
15+
echo -e "\\033[32m---> Waiting $1 running.\\033[0m"
1616
for i in {0..4}; do
17-
pid=$(pgrep $1)
17+
pid=$(pgrep "$1")
1818
if [ ! -n "$pid" ] && [[ $i == 3 ]]; then
19-
echo -e "\033[31m---> Process $1 failed.\033[0m"
19+
echo -e "\\033[31m---> Process $1 failed.\\033[0m"
2020
exit 1
2121
elif [ ! -n "$pid" ]; then
2222
sleep 3
2323
else
2424
sleep 1
25-
echo -e "\033[32m---> Process $1 started.\033[0m"
25+
echo -e "\\033[32m---> Process $1 started.\\033[0m"
2626
break
2727
fi
2828
done

0 commit comments

Comments
 (0)