未验证 提交 8f4f4e5a 编写于 作者: L Lingfeng Zhang 提交者: GitHub

replace uname -p with uname -m (#565)

uname -p is non-portable (even across GNU/Linux distributions) and unavailable in some distributions such as Debain 10 and Arch Linux. See this [manual](https://www.gnu.org/software/coreutils/manual/html_node/uname-invocation.html).
上级 e8484f5b
...@@ -5,7 +5,7 @@ unalias -a ...@@ -5,7 +5,7 @@ unalias -a
PWD="$(cd $(dirname $0); pwd)" PWD="$(cd $(dirname $0); pwd)"
OS_ARCH="$(uname -p)" || exit 1 OS_ARCH="$(uname -m)" || exit 1
OS_RELEASE="0" OS_RELEASE="0"
if [[ ! -f /etc/os-release ]]; then if [[ ! -f /etc/os-release ]]; then
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册