修复重启时进行资产状态检测空指针的问题

This commit is contained in:
dushixiang
2021-11-17 17:47:43 +08:00
parent 5fc20f1592
commit a8327f7f1a
3 changed files with 22 additions and 4 deletions

15
get_arch.sh Normal file
View File

@ -0,0 +1,15 @@
ARCH="$(arch)"
case "$ARCH" in
'x86_64')
export ARCH='amd64'
echo $ARCH
;;
'aarch64')
export ARCH='arm64'
echo $ARCH
;;
*)
export ARCH=$ARCH
echo $ARCH
;;
esac