Fixed file existing detection bug

Iin 2-para-install.sh
This commit is contained in:
Suikan 2021-06-28 23:26:06 +09:00
parent a7c48adc9e
commit 0a4238165c
3 changed files with 5 additions and 3 deletions

View file

@ -108,4 +108,4 @@ HEREDOC
return return
fi fi
echo "1-pre-install.sh : Done."

View file

@ -15,7 +15,7 @@ fi
# Check whether grub configuration file is ready to write # Check whether grub configuration file is ready to write
if [ ! -d /target/etc/default/grub ] ; then if [ ! -e /target/etc/default/grub ] ; then
cat <<HEREDOC 1>&2 cat <<HEREDOC 1>&2
***** ERROR : The /target/etc/default/grub is not ready. ***** ***** ERROR : The /target/etc/default/grub is not ready. *****
Perhaps, to early to execute this script. Perhaps, to early to execute this script.
@ -27,3 +27,5 @@ fi
# Make target GRUB aware to the crypt partition # Make target GRUB aware to the crypt partition
echo "GRUB_ENABLE_CRYPTODISK=y" >> /target/etc/default/grub echo "GRUB_ENABLE_CRYPTODISK=y" >> /target/etc/default/grub
echo "2-para-install.sh : Done."

View file

@ -50,4 +50,4 @@ update-initramfs -uk all
exit exit
HEREDOC HEREDOC
echo "Install finished. Ready to reboot." echo "3-para-install.sh : Done."