diff options
Diffstat (limited to 'chapter8/backup.sh')
-rw-r--r-- | chapter8/backup.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chapter8/backup.sh b/chapter8/backup.sh index 57b356d..8d750c5 100644 --- a/chapter8/backup.sh +++ b/chapter8/backup.sh @@ -9,6 +9,7 @@ else printf "%b" "${GRN}Backing up ${YLW}${LFS}${GRN} to ${YLW}${file}${RST}... " pushd "${LFS}" > /dev/null || exit 1 + # shellcheck disable=SC2024 sudo XZ_OPTS="-T${NUMPROCS} -e" tar cJvpf "${HOME}"/"${file}" "${directories[@]}" >"${LFS}"/sources/log/chapter8/backup.log 2>&1 & pid=$! spinner "$pid" "${SPINNER}" retval=$? @@ -16,6 +17,7 @@ else printf "%b" "${IRED}FAILED!${RST}\n" 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" fi |