Fix the egrep warning. (#2083)

This commit is contained in:
longpanda
2022-12-21 19:59:16 +08:00
parent 54dd35d277
commit 676ae725ae
5 changed files with 21 additions and 21 deletions

View File

@@ -12,11 +12,11 @@ if [ -f ./ventoy/version ]; then
curver=$(cat ./ventoy/version)
fi
if uname -m | egrep -q 'aarch64|arm64'; then
if uname -m | grep -E -q 'aarch64|arm64'; then
export TOOLDIR=aarch64
elif uname -m | egrep -q 'x86_64|amd64'; then
elif uname -m | grep -E -q 'x86_64|amd64'; then
export TOOLDIR=x86_64
elif uname -m | egrep -q 'mips64'; then
elif uname -m | grep -E -q 'mips64'; then
export TOOLDIR=mips64el
else
export TOOLDIR=i386