mirror of
https://github.com/correl/dotfiles.git
synced 2024-12-23 03:00:08 +00:00
[provisioning] Add pass-otp
This commit is contained in:
parent
fa12198430
commit
7f436a1747
1 changed files with 17 additions and 0 deletions
|
@ -6,12 +6,16 @@ case $_PLATFORM in
|
||||||
darwin)
|
darwin)
|
||||||
_recipe brew
|
_recipe brew
|
||||||
_brew pass
|
_brew pass
|
||||||
|
_brew pass-otp
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
_recipe _apt
|
_recipe _apt
|
||||||
_apt pwgen
|
_apt pwgen
|
||||||
_apt tree
|
_apt tree
|
||||||
_apt xclip
|
_apt xclip
|
||||||
|
_apt oathtool
|
||||||
|
_apt zbar-tools
|
||||||
|
|
||||||
if [ ! -x /usr/bin/pass ]; then
|
if [ ! -x /usr/bin/pass ]; then
|
||||||
dir=`mktemp -d` && \
|
dir=`mktemp -d` && \
|
||||||
pushd $dir >/dev/null
|
pushd $dir >/dev/null
|
||||||
|
@ -27,4 +31,17 @@ case $_PLATFORM in
|
||||||
else
|
else
|
||||||
echo "[tgz] password-store is already installed, skipping."
|
echo "[tgz] password-store is already installed, skipping."
|
||||||
fi
|
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
|
esac
|
||||||
|
|
Loading…
Reference in a new issue