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
0c812ed5
Unverified
Commit
0c812ed5
authored
Jun 23, 2023
by
William Poetra Yoga
Committed by
GitHub
Jun 23, 2023
Browse files
fix: grep warning (#2398)
parent
9f2b9b08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
INSTALL/tool/VentoyWorker.sh
INSTALL/tool/VentoyWorker.sh
+1
-1
No files found.
INSTALL/tool/VentoyWorker.sh
View file @
0c812ed5
...
@@ -143,7 +143,7 @@ if grep "$DISK" /proc/mounts; then
...
@@ -143,7 +143,7 @@ if grep "$DISK" /proc/mounts; then
fi
fi
#check swap partition
#check swap partition
if
swapon
--help
2>&1 |
grep
-q
'^
\
-s,'
;
then
if
swapon
--help
2>&1 |
grep
-q
'^ -s,'
;
then
if
swapon
-s
|
grep
-q
"^
${
DISK
}
[0-9]"
;
then
if
swapon
-s
|
grep
-q
"^
${
DISK
}
[0-9]"
;
then
vterr
"
$DISK
is used as swap, please swapoff it first!"
vterr
"
$DISK
is used as swap, please swapoff it first!"
exit
1
exit
1
...
...
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