pkg/urbit/configure: cpu=$(uname -m)

make pkg/urbit/configure actually able to detect CPU architecture when $HOST doesn't exist
This commit is contained in:
botter 2020-07-28 02:12:36 -05:00 committed by GitHub
parent 58f8fe04ec
commit d7b94e1219
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

2
pkg/urbit/configure vendored
View File

@ -30,7 +30,7 @@ if [ -n "${HOST-}" ]
then os=$(sed 's$^[^-]*-\([^-]*\)-.*$\1$' <<< "$HOST")
cpu=$(sed 's$-.*$$' <<< ${HOST})
else os=$(uname -s)
cpu=$(uname -p)
cpu=$(uname -m)
fi
case $(tr A-Z a-z <<< $cpu) in