Use `uname -m` to determine machine arch.

`uname -p` returned uknown for me. After googling for a while I found maybe-more-portable option.

For example see: https://github.com/torvalds/linux/blob/master/Makefile#L228
This commit is contained in:
gnull 2016-06-02 14:39:24 +03:00
parent f543448a20
commit ac41dbb976
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ LIBCAPSTONE64_SHA256="a7bf1cb814c6e712a314659b074bc4c00d2e0006cac67d055d3130d4ec
LIBCAPSTONE32_SHA256="4ffb4630829b9b4e8c713ae8336a8259b180194233f248170bfe0d1577257fb2"
unamestr=$(uname)
arch=$(uname -p)
arch=$(uname -m)
if [[ "$unamestr" == 'Linux' ]]; then
# we need pip to install python stuff