修复docker安装时异常退出的bug (#119)

* 修复docker安装时异常退出的bug

* 修复grub编译脚本的小bug
This commit is contained in:
YJwu2023 2022-12-19 14:53:51 +08:00 committed by GitHub
parent 978043e47d
commit 47f0d12a1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ mkdir -p ${grub_dir_x86_64_efi}
#检测grub是否已经安装
if [ -d ${grub_dir_i386_efi}/bin ] || [ -d ${grub_dir_i386_legacy}/bin ] && [ -d ${grub_dir_x86_64_efi}/bin ] ; then
if [ -d ${grub_dir_i386_efi}/bin ] && [ -d ${grub_dir_i386_legacy}/bin ] && [ -d ${grub_dir_x86_64_efi}/bin ] ; then
exit 0
fi
#仅支持Ubuntu/Debain下的自动安装

View File

@ -37,7 +37,7 @@ bins[0]=${kernel}
for file in ${bins[*]};do
if [ ! -x $file ]; then
echo "$file 不存在!"
exit
exit
fi
done