Skip to content

Commit

Permalink
fix(build): remove bash-isms
Browse files Browse the repository at this point in the history
  • Loading branch information
addaleax committed Jan 11, 2022
1 parent da5832b commit 2ee1daa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion liblzma-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ tar xvjf "$SRC_TARBALL" >node_liblzma_config.log 2>&1
export CFLAGS="-fPIC $CFLAGS"

# Fix build on Apple Silicon
if [[ ("$OSTYPE" == "darwin"*) && ($(uname -m) == "arm64") ]]; then
if [ $(uname) = "Darwin" -a $(uname -m) = "arm64" ]; then
XZ_SRC_DIR=$(ls | grep xz-*)
sed -i '' 's/\tnone)/\tarm64-*)\n\t\tbasic_machine=$(echo $basic_machine | sed "s\/arm64\/aarch64\/")\n\t\t;;\n\t\tnone)/g' $XZ_SRC_DIR/build-aux/config.sub
fi
Expand Down

0 comments on commit 2ee1daa

Please sign in to comment.