aboutsummaryrefslogtreecommitdiffstats
path: root/chapter8/backup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'chapter8/backup.sh')
-rw-r--r--chapter8/backup.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/chapter8/backup.sh b/chapter8/backup.sh
index d7a29ac..4df6f79 100644
--- a/chapter8/backup.sh
+++ b/chapter8/backup.sh
@@ -15,12 +15,12 @@ else
spinner "$pid" "${SPINNER}"
retval=$?
if [ "${retval}" -ne 0 ]; then
- printf "%b" "${IRED}FAILED!${RST}\n"
+ fail "FAILED!"
exit "${retval}"
else
# shellcheck disable=SC2024
sudo chown -v "${USER}":"$(id -g)" "${HOME}"/"${file}" >"${LFS}"/sources/log/chapter8/backup.log 2>&1
- printf "%b" "${IGRN}OK${RST}\n"
+ success "OK"
fi
popd > /dev/null || exit 1