From 7f436a1747886f9ec43fa82c77782aa11f6728c2 Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Sat, 5 Sep 2020 00:29:14 -0400 Subject: [PATCH] [provisioning] Add pass-otp --- recipes/password-store | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/recipes/password-store b/recipes/password-store index 27b33d8..e9e9737 100644 --- a/recipes/password-store +++ b/recipes/password-store @@ -6,12 +6,16 @@ case $_PLATFORM in darwin) _recipe brew _brew pass + _brew pass-otp ;; *) _recipe _apt _apt pwgen _apt tree _apt xclip + _apt oathtool + _apt zbar-tools + if [ ! -x /usr/bin/pass ]; then dir=`mktemp -d` && \ pushd $dir >/dev/null @@ -27,4 +31,17 @@ case $_PLATFORM in else echo "[tgz] password-store is already installed, skipping." fi + if [ ! -x /usr/lib/password-store/extensions/otp.bash ]; then + dir=`mktemp -d` && \ + pushd $dir >/dev/null + echo "[tgz] Fetching pass-otp" + curl -sL https://github.com/tadfisher/pass-otp/tarball/develop \ + | tar x -z --strip 1 && \ + echo "[tgz] Installing pass-otp" && \ + sudo make install >/dev/null 2>&1 + popd >/dev/null + rm -rf "$dir" + else + echo "[tgz] pass-otp is already installed, skipping." + fi esac