aboutsummaryrefslogtreecommitdiffstats
path: root/chapter6/backup.sh
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2021-04-02 12:30:09 -0500
committerWilliam Harrington <kb0iic@berzerkula.org>2021-04-02 12:30:09 -0500
commitd9dda5d2e5ebf96c8f8808d38b2ba9a116f0f0b0 (patch)
treeec45f0cdf1b95ba38d1c8d7f7c429eb60e5bab9d /chapter6/backup.sh
parent95902f2386e5d79fdcd688aa27737af896b3ac28 (diff)
parentbc2ffe5e6633538e5e34e1867b3a16c844c8b5fe (diff)
Merge branch 'cleanup' into chapter7
Diffstat (limited to 'chapter6/backup.sh')
-rw-r--r--chapter6/backup.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/chapter6/backup.sh b/chapter6/backup.sh
index 5d5030a..615aaf7 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" " ${IGRN}Backup found. Remove manually to backup again.\n${RST}"
+ printf "%b" " ${IGRN}Backup found. Remove manually to backup again.${RST}\n"
else
echo -ne "${GRN}Backing up ${YLW}${LFS}${GRN} to ${YLW}${file}${RST}... "
@@ -13,11 +13,11 @@ else
spinner "$pid" "${SPINNER}"
retval=$?
if [ "$retval" -ne 0 ]; then
- printf "%b" "${RED}FAILED!${RST}\n"
+ printf "%b" "${IRED}FAILED!${RST}\n"
exit "${retval}"
else
sudo chown "${USER}" "${HOME}"/"${file}"
- printf "%b" "${GRN}OK${RST}\n"
+ printf "%b" "${IGRN}OK${RST}\n"
fi
popd > /dev/null || exit 1