fix: bugfix

This commit is contained in:
Fred Liang
2020-05-27 15:17:12 +08:00
parent b60fbdd92c
commit 995a79071a
6 changed files with 10 additions and 5 deletions

View File

@@ -21,7 +21,7 @@ mburl="https://raw.githubusercontent.com/monlor/mbfiles/master"
mbtmp="/tmp/mbtmp"
[ ! -d "${mbtmp}" ] && mkdir -p ${mbtmp}
model=$(uname -ms | tr ' ' '_' | tr '[A-Z]' '[a-z]')
[ -n "$(echo $model | grep -E "linux.*aarch.*")" ] && model="linux_arm"
[ -n "$(echo $model | grep -E "linux.*aarch.*")" ] && model="linux_aarch64"
[ -n "$(echo $model | grep -E "linux.*arm.*")" ] && model="linux_arm"
[ -n "$(echo $model | grep -E "linux.*mips.*")" ] && model="linux_mips"
[ -n "$(echo $model | grep -E "linux.*x86_64.*")" ] && model="linux_x86_64"