diff options
author | William Harrington <kb0iic@berzerkula.org> | 2021-04-02 13:39:46 -0500 |
---|---|---|
committer | William Harrington <kb0iic@berzerkula.org> | 2021-04-02 13:39:46 -0500 |
commit | 47b9901c403c85f3e4771babcb9f7380917d835b (patch) | |
tree | e2c6c7ae0b729c15bb6458b31303e8788bee447d | |
parent | 1289a48da877f4f2b133570b4dd179b5e6f2be02 (diff) |
Use printf instead of echo.
-rw-r--r-- | chapter6/backup.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chapter6/backup.sh b/chapter6/backup.sh index 73e3b3d..ed46f31 100644 --- a/chapter6/backup.sh +++ b/chapter6/backup.sh @@ -7,7 +7,7 @@ if [ -f "${LFS}/sources/chapter6/backup" ]; then printf "%b" " ${IGRN}Backup previously completed${RST}\n" else - echo -ne "${GRN}Backing up ${YLW}${LFS}${GRN} to ${YLW}${file}${RST}... " + printf "%b" "${GRN}Backing up ${YLW}${LFS}${GRN} to ${YLW}${file}${RST}... " pushd "${LFS}" > /dev/null || exit 1 sudo XZ_OPTS="-T${NUMPROCS} -e" tar cJpf "${HOME}"/"${file}" "${directories[@]}" >/dev/null 2>&1 & pid=$! spinner "$pid" "${SPINNER}" |