From eb35696e9b37f041ee4ddc606910abc5218fc9b4 Mon Sep 17 00:00:00 2001 From: William Harrington Date: Fri, 2 Apr 2021 12:32:29 -0500 Subject: Format FAIL and OK messages with intense color. Reset colors before new line. Try to keep a sane style in the scripts. --- chapter7/backup.sh | 4 ++-- chapter7/cleanup.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'chapter7') diff --git a/chapter7/backup.sh b/chapter7/backup.sh index 68b9824..2aac08e 100644 --- a/chapter7/backup.sh +++ b/chapter7/backup.sh @@ -13,10 +13,10 @@ else spinner "$pid" "${SPINNER}" retval=$? if [ "${retval}" -ne 0 ]; then - echo -e "${RED}FAILED!${RST}" + echo -e "${IRED}FAILED!${RST}\n" exit "${retval}" else - echo -e "${GRN}OK${RST}" + echo -e "${IGRN}OK${RST}\n" fi popd > /dev/null || exit 1 diff --git a/chapter7/cleanup.sh b/chapter7/cleanup.sh index 95e1449..60a934f 100644 --- a/chapter7/cleanup.sh +++ b/chapter7/cleanup.sh @@ -18,6 +18,6 @@ else sudo strip --strip-unneeded "${LFS}"/usr/sbin/* >/dev/null 2>&1 sudo strip --strip-unneeded "${LFS}"/tools/bin/* >/dev/null 2>&1 - echo -e "${GRN}OK${RST}" + echo -e "${IGRN}OK${RST}\n" touch "${LFS}"/sources/chapter7/cleanup >/dev/null 2>&1 fi -- cgit v1.2.3-54-g00ecf