mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-04-01 10:13:47 -04:00
fix the shell bug
This commit is contained in:
parent
5af01de7c2
commit
26258653b7
@ -38,7 +38,7 @@ if [ "$1" = "uefi" ]; then
|
|||||||
|
|
||||||
#copy other modules
|
#copy other modules
|
||||||
ls -1 $VT_DIR/GRUB2/INSTALL/lib/grub/x86_64-efi/ | egrep '\.(lst|mod)$' | while read line; do
|
ls -1 $VT_DIR/GRUB2/INSTALL/lib/grub/x86_64-efi/ | egrep '\.(lst|mod)$' | while read line; do
|
||||||
if ! echo $all_modules | grep -q "${line%.mod} "; then
|
if ! echo $all_modules | grep -q " ${line%.mod} "; then
|
||||||
echo "Copy $line ..."
|
echo "Copy $line ..."
|
||||||
rm -f $VT_DIR/INSTALL/grub/x86_64-efi/$line
|
rm -f $VT_DIR/INSTALL/grub/x86_64-efi/$line
|
||||||
cp -a $VT_DIR/GRUB2/INSTALL/lib/grub/x86_64-efi/$line $VT_DIR/INSTALL/grub/x86_64-efi/
|
cp -a $VT_DIR/GRUB2/INSTALL/lib/grub/x86_64-efi/$line $VT_DIR/INSTALL/grub/x86_64-efi/
|
||||||
@ -53,7 +53,7 @@ else
|
|||||||
|
|
||||||
#copy other modules
|
#copy other modules
|
||||||
ls -1 $VT_DIR/GRUB2/INSTALL/lib/grub/i386-pc/ | egrep '\.(lst|mod)$' | while read line; do
|
ls -1 $VT_DIR/GRUB2/INSTALL/lib/grub/i386-pc/ | egrep '\.(lst|mod)$' | while read line; do
|
||||||
if ! echo $all_modules | grep -q "${line%.mod} "; then
|
if ! echo $all_modules | grep -q " ${line%.mod} "; then
|
||||||
echo "Copy $line ..."
|
echo "Copy $line ..."
|
||||||
rm -f $VT_DIR/INSTALL/grub/i386-pc/$line
|
rm -f $VT_DIR/INSTALL/grub/i386-pc/$line
|
||||||
cp -a $VT_DIR/GRUB2/INSTALL/lib/grub/i386-pc/$line $VT_DIR/INSTALL/grub/i386-pc/
|
cp -a $VT_DIR/GRUB2/INSTALL/lib/grub/i386-pc/$line $VT_DIR/INSTALL/grub/i386-pc/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user