diff options
author | William Harrington <kb0iic@berzerkula.org> | 2021-04-02 12:29:28 -0500 |
---|---|---|
committer | William Harrington <kb0iic@berzerkula.org> | 2021-04-02 12:29:28 -0500 |
commit | bc2ffe5e6633538e5e34e1867b3a16c844c8b5fe (patch) | |
tree | 140283dfc8e8517dc209893c8939e1982ae8e18e /chapter6/backup.sh | |
parent | e2547734fd91c35bf3eaac1d9486b0f3c2877192 (diff) |
Format FAIL and OK messages with intense color. Reset colors before new line. Try to keep a sane style in the scripts.
Diffstat (limited to 'chapter6/backup.sh')
-rw-r--r-- | chapter6/backup.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chapter6/backup.sh b/chapter6/backup.sh index 5d5030a..615aaf7 100644 --- a/chapter6/backup.sh +++ b/chapter6/backup.sh @@ -4,7 +4,7 @@ file="${LFS_VER}-ch6-backup.tar.xz" directories=(bin etc lib lib64 sbin tools usr var) if [ -f "${LFS}/sources/chapter6/backup" ]; then - printf "%b" " ${IGRN}Backup found. Remove manually to backup again.\n${RST}" + printf "%b" " ${IGRN}Backup found. Remove manually to backup again.${RST}\n" else echo -ne "${GRN}Backing up ${YLW}${LFS}${GRN} to ${YLW}${file}${RST}... " @@ -13,11 +13,11 @@ else spinner "$pid" "${SPINNER}" retval=$? if [ "$retval" -ne 0 ]; then - printf "%b" "${RED}FAILED!${RST}\n" + printf "%b" "${IRED}FAILED!${RST}\n" exit "${retval}" else sudo chown "${USER}" "${HOME}"/"${file}" - printf "%b" "${GRN}OK${RST}\n" + printf "%b" "${IGRN}OK${RST}\n" fi popd > /dev/null || exit 1 |