support sw_64 arch build

This commit is contained in:
wenxingsen
2022-05-16 11:20:47 +08:00
committed by wangzelin.wzl
parent addaaac260
commit 9175be1680
7 changed files with 74 additions and 12 deletions

View File

@ -87,6 +87,12 @@ function get_os_release() {
version_ge "7.0" && OS_RELEASE=7 && return
;;
esac
elif [[ "${OS_ARCH}x" == "sw_64x" ]]; then
case "$ID" in
UOS)
version_ge "20" && OS_RELEASE=20 && return
;;
esac
fi
not_supported && return 1
}