diff options
author | William Harrington <kb0iic@berzerkula.org> | 2021-03-26 16:54:18 -0500 |
---|---|---|
committer | William Harrington <kb0iic@berzerkula.org> | 2021-03-26 16:54:18 -0500 |
commit | 835366b102f92a5fc7710ad67326b176f1ded477 (patch) | |
tree | 24286c49f016d1c019ecfc9e570faff9c7a1da2e | |
parent | c5175c15f5a32347e7ae86b613c8e29996a714c8 (diff) |
Add new line after backup found message and only return FAILED if failure.
-rw-r--r-- | chapter6/backup.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chapter6/backup.sh b/chapter6/backup.sh index f2f0d64..7c458c8 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" "${YLW}Chapter 6 ${GRN}Backup found. Remove manually to backup again.${RST}" + printf "%b" "${YLW}Chapter 6 ${GRN}Backup found. Remove manually to backup again.\n${RST}" else echo -ne "${GRN}Backing up ${YLW}${LFS}${GRN} to ${YLW}${file}${RST}... " @@ -13,7 +13,7 @@ else spinner "$pid" retval=$? if [ "$retval" -ne 0 ]; then - printf "%b" "${RED}Backup FAILED!${RST}\n" + printf "%b" "${RED}FAILED!${RST}\n" exit 1 else sudo chown "${USER}" "${HOME}"/"${file}" |