diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2025-12-26 14:31:22 -0500 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2025-12-26 14:31:22 -0500 |
| commit | 2b5545d6278036a7d959df982f2260b3faa85808 (patch) | |
| tree | cb4c09f04a6f65988306630d2cd898bbb269132c /compile/age-plugin-yubikey.sh | |
| parent | e223ea0a045f1e086e0780f7c1778a94bce92ad6 (diff) | |
| download | dotfiles-2b5545d6278036a7d959df982f2260b3faa85808.tar.gz dotfiles-2b5545d6278036a7d959df982f2260b3faa85808.tar.xz | |
Updates to support latest Fedora
Diffstat (limited to 'compile/age-plugin-yubikey.sh')
| -rwxr-xr-x | compile/age-plugin-yubikey.sh | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/compile/age-plugin-yubikey.sh b/compile/age-plugin-yubikey.sh new file mode 100755 index 0000000..e7da219 --- /dev/null +++ b/compile/age-plugin-yubikey.sh @@ -0,0 +1,18 @@ +#!/bin/sh +# On Fedora... +# sudo dnf install cargo pcsc-lite-devel +if [ "$(id -u)" -eq 0 ] ; then + echo "Run as a regular user" + exit 1 +fi +set -ex +codedir="${CODEDIR:-$HOME/scm}" +bindir="${BINDIR:-$HOME/.local/bin}" +plugindir="${codedir}/age-plugin-yubikey" +if ! [ -d "$plugindir" ] ; then + git clone https://github.com/str4d/age-plugin-yubikey "$plugindir" +fi +cd "$plugindir" +cargo build +cp -vf target/debug/age-plugin-yubikey $bindir +cd - |
