aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2021-04-02 13:38:46 -0500
committerWilliam Harrington <kb0iic@berzerkula.org>2021-04-02 13:38:46 -0500
commit1289a48da877f4f2b133570b4dd179b5e6f2be02 (patch)
treeef1efcab973e8cac1be9d7ec23e6ce172c136601
parent89b1f1e2805a93e4c334dd4c8551d82075489e2b (diff)
Use printf instead of echo.
-rw-r--r--chapter6/cleanup.sh6
1 files changed, 3 insertions, 3 deletions
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