From 0a4238165cf5ff2c2e39b1c641780e81c7bb5608 Mon Sep 17 00:00:00 2001 From: Suikan <26223147+suikan4github@users.noreply.github.com> Date: Mon, 28 Jun 2021 23:26:06 +0900 Subject: [PATCH] Fixed file existing detection bug Iin 2-para-install.sh --- ubuntu/1-pre-install.sh | 2 +- ubuntu/2-para-install.sh | 4 +++- ubuntu/3-post-install.sh | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ubuntu/1-pre-install.sh b/ubuntu/1-pre-install.sh index db04848..d99ca94 100644 --- a/ubuntu/1-pre-install.sh +++ b/ubuntu/1-pre-install.sh @@ -108,4 +108,4 @@ HEREDOC return fi - +echo "1-pre-install.sh : Done." diff --git a/ubuntu/2-para-install.sh b/ubuntu/2-para-install.sh index 429e9c5..9dc5468 100644 --- a/ubuntu/2-para-install.sh +++ b/ubuntu/2-para-install.sh @@ -15,7 +15,7 @@ fi # Check whether grub configuration file is ready to write -if [ ! -d /target/etc/default/grub ] ; then +if [ ! -e /target/etc/default/grub ] ; then cat <&2 ***** ERROR : The /target/etc/default/grub is not ready. ***** Perhaps, to early to execute this script. @@ -27,3 +27,5 @@ fi # Make target GRUB aware to the crypt partition echo "GRUB_ENABLE_CRYPTODISK=y" >> /target/etc/default/grub + +echo "2-para-install.sh : Done." \ No newline at end of file diff --git a/ubuntu/3-post-install.sh b/ubuntu/3-post-install.sh index da4f754..f60b5c9 100644 --- a/ubuntu/3-post-install.sh +++ b/ubuntu/3-post-install.sh @@ -50,4 +50,4 @@ update-initramfs -uk all exit HEREDOC -echo "Install finished. Ready to reboot." \ No newline at end of file +echo "3-para-install.sh : Done." \ No newline at end of file