From 6fe4c767d9141acc4e08ba09c334ccb0c0cc31b2 Mon Sep 17 00:00:00 2001 From: Steve Coffman Date: Sat, 29 Jun 2019 19:53:48 -0400 Subject: [PATCH] Add brew formula directions --- README.md | 12 ++++++++++-- install.sh | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7938b39..b464cb2 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,20 @@ keyfob is a two-factor authentication agent suitable for AWS and Github. Works p ## Installation -If you're on a mac, you can just do this: +If you use homebrew: + +``` +brew tap StevenACoffman/keyfob +brew install keyfob +``` +Any subsequent releases should get picked up automatically with `brew upgrade` + +If don't use homewbrew, and you're on a mac, you can just do this: wget -O - https://raw.githubusercontent.com/StevenACoffman/keyfob/master/install.sh | bash -This will download the github 0.1.0 binary release for mac, and move any of your MFA secrets from `2fa` over to your keychain. +This will download the github 0.3.0 binary release for mac, and move any of your MFA secrets from `2fa` over to your keychain. ## Usage diff --git a/install.sh b/install.sh index 01f301c..5bb4fbd 100755 --- a/install.sh +++ b/install.sh @@ -3,7 +3,7 @@ # Script will snarf secrets from 2fa file if [ ! -x "$(command -v keyfob)" ]; then echo "keyfob is not installed, so I'm going to go grab the mac one for you" - wget -O - https://github.com/StevenACoffman/keyfob/releases/download/v0.1.0/keyfob_0.1.0_Darwin_x86_64.tar.gz | tar xzvf + wget -O - https://github.com/StevenACoffman/keyfob/releases/download/v0.3.0/keyfob_0.3.0_Darwin_x86_64.tar.gz | tar xzvf mkdir -p /usr/local/bin mv keyfob /usr/local/bin fi