diff options
author | William Harrington <kb0iic@berzerkula.org> | 2021-03-23 17:28:55 -0500 |
---|---|---|
committer | William Harrington <kb0iic@berzerkula.org> | 2021-03-23 17:28:55 -0500 |
commit | 60a45f6b4b1b11498fd877f4b03daba33e5de15d (patch) | |
tree | 80c341924a0ea4b281ed446730b69e09c45200ae | |
parent | fb88c0e7e323a761054e5fa95befc87dcefa4564 (diff) | |
parent | 16505439f834f2f5f901866378a4b56ac8c3733c (diff) |
Merge chapter6 backup and cleanup from master.
-rw-r--r-- | chapter6/backup.sh | 2 | ||||
-rw-r--r-- | chapter6/cleanup.sh | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/chapter6/backup.sh b/chapter6/backup.sh index 0f474d6..0cbd314 100644 --- a/chapter6/backup.sh +++ b/chapter6/backup.sh @@ -9,7 +9,7 @@ else echo -ne "${GRN}Backing up ${YLW}${LFS}${GRN} to ${YLW}${FILE}${RST}... " pushd "${LFS}" > /dev/null || exit 1 - sudo XZ_OPTS="${NUMPROCS} -e" tar -cJpf /home/"${USER}"/"${FILE}" "${DIRS}" & pid=$! + sudo XZ_OPTS="-T${NUMPROCS} -e" tar -cJpf "${HOME}"/"${FILE}" "${DIRS}" & pid=$! spinner "$pid" retval=$? if [ "$retval" -ne 0 ]; then diff --git a/chapter6/cleanup.sh b/chapter6/cleanup.sh index abe4b0a..8d31264 100644 --- a/chapter6/cleanup.sh +++ b/chapter6/cleanup.sh @@ -9,9 +9,9 @@ else find "${LFS}"/usr/lib -name \*.la -delete >/dev/null 2>&1 find "${LFS}"/usr/libexec -name \*.la -delete >/dev/null 2>&1 - rm -rf /usr/share/doc >/dev/null 2>&1 - rm -rf /usr/share/info >/dev/null 2>&1 - rm -rf /usr/share/man >/dev/null 2>&1 + rm -rf "${LFS}"/usr/share/doc >/dev/null 2>&1 + rm -rf "${LFS}"/usr/share/info >/dev/null 2>&1 + rm -rf "${LFS}"/usr/share/man >/dev/null 2>&1 strip --strip-debug "${LFS}"S/usr/lib/* >/dev/null 2>&1 strip --strip-unneeded "${LFS}"/usr/bin/* >/dev/null 2>&1 |