Skip to content

Commit

Permalink
use uname -m instead of arch comamnd
Browse files Browse the repository at this point in the history
`arch` command is not installed at default.
see coreutils document:

> arch is not installed by default, so portable scripts should
> not rely on its existence.

https://www.gnu.org/software/coreutils/manual/html_node/arch-invocation.html

ref: google/fscrypt#92 (comment)
  • Loading branch information
conao3 committed Oct 25, 2021
1 parent 69f55d4 commit 1af5b6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions etc/scripts/get-stack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ post_install_separator() {

# determines the the CPU's instruction set
get_isa() {
if arch | grep -Eq 'armv[78]l?' ; then
if uname -m | grep -Eq 'armv[78]l?' ; then
echo arm
elif arch | grep -q aarch64 ; then
elif uname -m | grep -q aarch64 ; then
echo aarch64
else
echo x86
Expand Down

0 comments on commit 1af5b6c

Please sign in to comment.