Skip to content

Commit 1af5b6c

Browse files
committed
use uname -m instead of arch comamnd
`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)
1 parent 69f55d4 commit 1af5b6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

etc/scripts/get-stack.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ post_install_separator() {
7171

7272
# determines the the CPU's instruction set
7373
get_isa() {
74-
if arch | grep -Eq 'armv[78]l?' ; then
74+
if uname -m | grep -Eq 'armv[78]l?' ; then
7575
echo arm
76-
elif arch | grep -q aarch64 ; then
76+
elif uname -m | grep -q aarch64 ; then
7777
echo aarch64
7878
else
7979
echo x86

0 commit comments

Comments
 (0)