diff options
author | William Harrington <kb0iic@berzerkula.org> | 2021-04-02 13:36:51 -0500 |
---|---|---|
committer | William Harrington <kb0iic@berzerkula.org> | 2021-04-02 13:36:51 -0500 |
commit | d15a78517dfa18948aaf9ae91b19cdc2de5df998 (patch) | |
tree | 01cbf0cc8c2db4e5a4e7ad69ee057e5c00a0b6c5 /chapter7/cleanup.sh | |
parent | 89ca137a22258537e9fd7e973a037fd0c50749bc (diff) |
Cleanup information messages for chapater 7 backup and cleanup and change from echo to printf.
Diffstat (limited to 'chapter7/cleanup.sh')
-rw-r--r-- | chapter7/cleanup.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chapter7/cleanup.sh b/chapter7/cleanup.sh index 60a934f..0a5ec86 100644 --- a/chapter7/cleanup.sh +++ b/chapter7/cleanup.sh @@ -1,10 +1,10 @@ #!/bin/bash if [ -f "${LFS}/sources/chapter7/cleanup" ]; then - echo -e " ${IGRN}Cleanup already performed.${RST}" + printf "%b" " ${IGRN}Cleanup already performed${RST}\n" else - echo -ne "${GRN}Cleaning up ${YLW}${LFS}${RST}... " + printf "%b" "${GRN}Cleaning up ${YLW}${LFS}${RST}... " sudo find "${LFS}"/usr/lib -name \*.la -delete >/dev/null 2>&1 sudo find "${LFS}"/usr/libexec -name \*.la -delete >/dev/null 2>&1 @@ -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 "${IGRN}OK${RST}\n" + printf "%b" "${IGRN}OK${RST}\n" touch "${LFS}"/sources/chapter7/cleanup >/dev/null 2>&1 fi |