From add7bbcf88662a87f53cd3546a65b243e34e5598 Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Thu, 12 Dec 2019 10:43:26 +0100 Subject: [PATCH 1/2] enable escape codes for color --- travis/prepare.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/travis/prepare.sh b/travis/prepare.sh index 54075e9..e0d81b9 100755 --- a/travis/prepare.sh +++ b/travis/prepare.sh @@ -151,7 +151,7 @@ EOF fi else - echo "${ANSI_GREEN}EPICS build system already set up (Base was loaded from cache)${ANSI_RESET}" + echo -e "${ANSI_GREEN}EPICS build system already set up (Base was loaded from cache)${ANSI_RESET}" fi # Download RTEMS cross compiler @@ -174,7 +174,7 @@ fold_start build.dependencies "Build missing/outdated dependencies" [ "$VV" ] && silent="-s" || silent= -[ -z "$modules_to_compile" ] && echo "${ANSI_GREEN}All dependency modules are up-to-date (nothing to do)${ANSI_RESET}" +[ -z "$modules_to_compile" ] && echo -e "${ANSI_GREEN}All dependency modules are up-to-date (nothing to do)${ANSI_RESET}" for module in ${modules_to_compile} do @@ -186,7 +186,7 @@ done fold_end build.dependencies -echo "${ANSI_BLUE}Dependency module information${ANSI_RESET}" +echo -e "${ANSI_BLUE}Dependency module information${ANSI_RESET}" echo "Module Tag Binaries Commit" echo "-----------------------------------------------------------------------------------" @@ -200,5 +200,5 @@ do printf "%-10s %-12s %-11s %s\n" "$mod" "$tag" "$stat" "$commit" done -echo "${ANSI_BLUE}Contents of RELEASE.local${ANSI_RESET}" +echo -e "${ANSI_BLUE}Contents of RELEASE.local${ANSI_RESET}" cat ${CACHEDIR}/RELEASE.local From 64e382b46e1d789776f97f94fe2653e76c04fd0c Mon Sep 17 00:00:00 2001 From: Dirk Zimoch Date: Thu, 12 Dec 2019 10:44:51 +0100 Subject: [PATCH 2/2] enable line feed after fold_start message --- travis/utils.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/travis/utils.sh b/travis/utils.sh index 4ff375b..a35c7db 100644 --- a/travis/utils.sh +++ b/travis/utils.sh @@ -22,7 +22,7 @@ export ANSI_CLEAR="\033[0K" # from https://github.com/travis-ci/travis-rubies/blob/build/build.sh fold_start() { - echo -en "travis_fold:start:$1\\r${ANSI_YELLOW}$2${ANSI_RESET}" + echo -e "travis_fold:start:$1\\r${ANSI_YELLOW}$2${ANSI_RESET}" } fold_end() {