From 7e786ff5f1eeebe0b07da0980227797ec7bb245a Mon Sep 17 00:00:00 2001 From: William Harrington Date: Thu, 8 Apr 2021 19:01:31 -0500 Subject: Remove +'s and add shellcheck directives. --- lfs.sh | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/lfs.sh b/lfs.sh index c61f7ee..62c2198 100755 --- a/lfs.sh +++ b/lfs.sh @@ -71,16 +71,16 @@ fi # Create limited directory layout if [[ ! -f "${LFS}"/sources/limited ]]; then -+ mkdir -p "${LFS}"/sources -+ mkdir -p "${LFS}"/tools -+ mkdir -p "${LFS}"/bin -+ mkdir -p "${LFS}"/etc -+ mkdir -p "${LFS}"/lib -+ mkdir -p "${LFS}"/sbin -+ mkdir -p "${LFS}"/usr -+ mkdir -p "${LFS}"/var -+ touch "${LFS}"/sources/limited -+fi + mkdir -p "${LFS}"/sources + mkdir -p "${LFS}"/tools + mkdir -p "${LFS}"/bin + mkdir -p "${LFS}"/etc + mkdir -p "${LFS}"/lib + mkdir -p "${LFS}"/sbin + mkdir -p "${LFS}"/usr + mkdir -p "${LFS}"/var + touch "${LFS}"/sources/limited +fi case $(uname -m) in x86_64) mkdir -p "${LFS}"/lib64 ;; @@ -174,7 +174,9 @@ if [[ "$retval" -eq 0 ]]; then printf "%b" "\n${IWHT}======= ${IYLW}Chapter 7 ${IGRN}Cleanup and Backup \ ${IWHT}=======${RST}\n" + # shellcheck source=chapter7/cleanup.sh source "${LFS}"/sources/chapter7/cleanup.sh + # shellcheck source=chapter7/backup.sh source "${LFS}"/sources/chapter7/backup.sh else exit "$retval" -- cgit v1.2.3-54-g00ecf