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
9f357f8e
Commit
9f357f8e
authored
Mar 01, 2021
by
longpanda
Browse files
use uname -m to detect architecture (PR #774)
parent
eb1a014d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
INSTALL/Ventoy2Disk.sh
INSTALL/Ventoy2Disk.sh
+2
-2
INSTALL/VentoyWeb.sh
INSTALL/VentoyWeb.sh
+2
-2
No files found.
INSTALL/Ventoy2Disk.sh
View file @
9f357f8e
...
@@ -12,9 +12,9 @@ if [ -f ./ventoy/version ]; then
...
@@ -12,9 +12,9 @@ if [ -f ./ventoy/version ]; then
curver
=
$(
cat
./ventoy/version
)
curver
=
$(
cat
./ventoy/version
)
fi
fi
if
uname
-
a
| egrep
-q
'aarch64|arm64'
;
then
if
uname
-
m
| egrep
-q
'aarch64|arm64'
;
then
export
TOOLDIR
=
aarch64
export
TOOLDIR
=
aarch64
elif
uname
-
a
| egrep
-q
'x86_64|amd64'
;
then
elif
uname
-
m
| egrep
-q
'x86_64|amd64'
;
then
export
TOOLDIR
=
x86_64
export
TOOLDIR
=
x86_64
else
else
export
TOOLDIR
=
i386
export
TOOLDIR
=
i386
...
...
INSTALL/VentoyWeb.sh
View file @
9f357f8e
...
@@ -23,9 +23,9 @@ fi
...
@@ -23,9 +23,9 @@ fi
OLDDIR
=
$(
pwd
)
OLDDIR
=
$(
pwd
)
if
uname
-
a
| egrep
-q
'aarch64|arm64'
;
then
if
uname
-
m
| egrep
-q
'aarch64|arm64'
;
then
TOOLDIR
=
aarch64
TOOLDIR
=
aarch64
elif
uname
-
a
| egrep
-q
'x86_64|amd64'
;
then
elif
uname
-
m
| egrep
-q
'x86_64|amd64'
;
then
TOOLDIR
=
x86_64
TOOLDIR
=
x86_64
else
else
TOOLDIR
=
i386
TOOLDIR
=
i386
...
...
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