From 1289a48da877f4f2b133570b4dd179b5e6f2be02 Mon Sep 17 00:00:00 2001 From: William Harrington Date: Fri, 2 Apr 2021 13:38:46 -0500 Subject: Use printf instead of echo. --- chapter6/cleanup.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'chapter6') diff --git a/chapter6/cleanup.sh b/chapter6/cleanup.sh index 29b133f..1a82633 100644 --- a/chapter6/cleanup.sh +++ b/chapter6/cleanup.sh @@ -1,10 +1,10 @@ #!/bin/bash if [ -f "${LFS}/sources/chapter6/cleanup" ]; then - echo -e " ${IGRN}Cleanup already performed${RST}" + printf "%b" " ${IGRN}Cleanup already performed${RST}" else - echo -ne "${GRN}Cleaning up ${YLW}${LFS}${RST}... " + printf "%b" "${GRN}Cleaning up ${YLW}${LFS}${RST}... " find "${LFS}"/usr/lib -name \*.la -delete >/dev/null 2>&1 find "${LFS}"/usr/libexec -name \*.la -delete >/dev/null 2>&1 @@ -18,6 +18,6 @@ else strip --strip-unneeded "${LFS}"/usr/sbin/* >/dev/null 2>&1 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/chapter6/cleanup >/dev/null 2>&1 fi -- cgit v1.2.3-54-g00ecf