Skip to content

Fix usage of arch to work on OSX#5384

Merged
morgo merged 1 commit intovitessio:masterfrom
BenMusch:benmusch/bootstrap-script-osx
Nov 5, 2019
Merged

Fix usage of arch to work on OSX#5384
morgo merged 1 commit intovitessio:masterfrom
BenMusch:benmusch/bootstrap-script-osx

Conversation

@BenMusch
Copy link

On OS X, the arch command returns i386. However, uname -m
returns x86_64, which is the value the rest of the bootstrap.sh script
expects. This commit writes a function get_arch to wrap the arch
command, which calls uname on OS X and arch on Linux

Testing

Tested on my Mac, the script completed successfully

Signed-off-by: Ben Muschol ben.muschol@airbnb.com

On OS X, the arch command returns "i386". However, "uname -m"
returns x86_64, which is the value the rest of the bootstrap.sh script
expects. This commit writes a function "get_arch" to wrap the "arch"
command, which calls uname on OS X and arch on Linux

Signed-off-by: Ben Muschol <ben.muschol@airbnb.com>
Copy link
Contributor

@morgo morgo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@morgo morgo merged commit 018ddae into vitessio:master Nov 5, 2019
@BenMusch BenMusch deleted the benmusch/bootstrap-script-osx branch November 5, 2019 16:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants