We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a564a13 commit bdd60e3Copy full SHA for bdd60e3
1 file changed
rootfs/imagebuilder/build
@@ -12,17 +12,17 @@ function clean_before_exit {
12
trap clean_before_exit EXIT
13
14
function waiting_process {
15
- echo -e "\033[32m---> Waiting $1 running.\033[0m"
+ echo -e "\\033[32m---> Waiting $1 running.\\033[0m"
16
for i in {0..4}; do
17
- pid=$(pgrep $1)
+ pid=$(pgrep "$1")
18
if [ ! -n "$pid" ] && [[ $i == 3 ]]; then
19
- echo -e "\033[31m---> Process $1 failed.\033[0m"
+ echo -e "\\033[31m---> Process $1 failed.\\033[0m"
20
exit 1
21
elif [ ! -n "$pid" ]; then
22
sleep 3
23
else
24
sleep 1
25
- echo -e "\033[32m---> Process $1 started.\033[0m"
+ echo -e "\\033[32m---> Process $1 started.\\033[0m"
26
break
27
fi
28
done
0 commit comments