aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2021-04-02 12:32:29 -0500
committerWilliam Harrington <kb0iic@berzerkula.org>2021-04-02 12:32:29 -0500
commiteb35696e9b37f041ee4ddc606910abc5218fc9b4 (patch)
tree5086ca4e1ed0e4e08f7f2c499da6eea66c916ed6
parentd9dda5d2e5ebf96c8f8808d38b2ba9a116f0f0b0 (diff)
Format FAIL and OK messages with intense color. Reset colors before new line. Try to keep a sane style in the scripts.
-rw-r--r--chapter7/backup.sh4
-rw-r--r--chapter7/cleanup.sh2
2 files changed, 3 insertions, 3 deletions
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