Skip to content

Commit 1781712

Browse files
committed
Add color to check.sh
1 parent 24f21be commit 1781712

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

check.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
. ./benchmark.config
44
. ./base/option_target.sh
55

6+
GREEN='\033[0;32m'
7+
RED='\033[0;31m'
8+
NC='\033[0m' # No Color
9+
610
for fw in `echo $param_targets`
711
do
812
if [ -d "$fw" ]; then
@@ -13,10 +17,10 @@ do
1317

1418
# expected to get the Hello World! + libs/output_data.php
1519
if ! [[ "$url_output" =~ ^('Hello World!')(.*)(([0-9]*):(([0-9]+([.][0-9]*)?|[.][0-9]+)):([0-9]*))$ ]]; then
16-
echo -e "error: \n$url"
20+
echo -e "${RED}error: \n$url${NC}"
1721
echo "$url_output"
1822
else
19-
echo "done."
23+
echo "${GREEN}done.${NC}"
2024
fi
2125
fi
2226
done

0 commit comments

Comments
 (0)