diff options
author | William Harrington <kb0iic@berzerkula.org> | 2021-04-02 11:33:59 -0500 |
---|---|---|
committer | William Harrington <kb0iic@berzerkula.org> | 2021-04-02 11:33:59 -0500 |
commit | 09a71c051060d3b934a19ae4d9c962f7ceb44c69 (patch) | |
tree | 12b46d0b4caf7a21d9a37dc8d0de6442c929fe33 /insidechroot.sh | |
parent | f063af2cf37ddb9e542e8b085f350f79802e87e8 (diff) | |
parent | e2547734fd91c35bf3eaac1d9486b0f3c2877192 (diff) |
Merge branch 'cleanup' into chapter7
Diffstat (limited to 'insidechroot.sh')
-rw-r--r-- | insidechroot.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/insidechroot.sh b/insidechroot.sh index 307e990..d943214 100644 --- a/insidechroot.sh +++ b/insidechroot.sh @@ -7,9 +7,9 @@ source /sources/functions.sh printf "%b" "${CYN}SUCCESSFULLY ENTERED ${RED}CHROOT${RST}!\n" -if [ "${CHAPTER}" -eq 7 ]; then +if [[ "${CHAPTER}" -eq 7 ]]; then printf "%b" "${GRN}Creating directories...${RST}\n" - if [ -f /sources/createdirs ]; then + if [[ -f /sources/createdirs ]]; then printf "%b" "${IGRN} Directories already created.${RST}\n" else mkdir -p /boot @@ -88,7 +88,7 @@ if [ "${CHAPTER}" -eq 7 ]; then fi printf "%b" "${GRN}Creating essential files and symbolic links... ${RST}\n" - if [ -f "/sources/essential" ]; then + if [[ -f "/sources/essential" ]]; then printf "%b" " ${IGRN}Essential files and symbolic links already created.${RST}\n" else ln -sf /proc/self/mounts /etc/mtab |