aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Harrington <kb0iic@berzerkula.org>2021-04-07 12:43:47 -0500
committerWilliam Harrington <kb0iic@berzerkula.org>2021-04-07 12:43:47 -0500
commitfeded3248bd1453fd9a264cc571e8d1bc2742651 (patch)
treec300647092c6285b5d883aa21af2a37f7ceb1858
parent99c6ae8bf03053bce2bb97d5df9a09b06154fe9a (diff)
parent6fe469522a3213e5b005e6f21b6bd34a71e064b3 (diff)
Merge branch 'cleanup' into chapter8
-rw-r--r--chapter6/file.sh2
-rw-r--r--chapter7/backup.sh1
2 files changed, 2 insertions, 1 deletions
diff --git a/chapter6/file.sh b/chapter6/file.sh
index bc2cd38..4f1f294 100644
--- a/chapter6/file.sh
+++ b/chapter6/file.sh
@@ -16,5 +16,5 @@ popd > /dev/null || exit 1
make FILE_COMPILE="$(pwd)"/build/src/file &&
make DESTDIR="${LFS}" -j1 install
-mv -v "${LFS}"/usr/lib/libmagic.so.* $LFS/lib
+mv -v "${LFS}"/usr/lib/libmagic.so.* "${LFS}"/lib
ln -sfv ../../lib/"$(readlink /usr/lib/libmagic.so)" "${LFS}"/usr/lib/libmagic.so
diff --git a/chapter7/backup.sh b/chapter7/backup.sh
index 7745551..9442566 100644
--- a/chapter7/backup.sh
+++ b/chapter7/backup.sh
@@ -16,6 +16,7 @@ else
printf "%b" "${IRED}FAILED!${RST}\n"
exit "${retval}"
else
+ sudo chown -v "${USER}" "${HOME}"/"${file}" >"${LFS}"/sources/log/chapter7/backup.log 2>&1
printf "%b" "${IGRN}OK${RST}\n"
fi
popd > /dev/null || exit 1