Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dadigang
Ventoy
Commits
26258653
Commit
26258653
authored
Jul 26, 2020
by
longpanda
Browse files
fix the shell bug
parent
5af01de7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
GRUB2/MOD_SRC/grub-2.04/install.sh
GRUB2/MOD_SRC/grub-2.04/install.sh
+2
-2
No files found.
GRUB2/MOD_SRC/grub-2.04/install.sh
View file @
26258653
...
@@ -38,7 +38,7 @@ if [ "$1" = "uefi" ]; then
...
@@ -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
...
@@ -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/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment