dotfiles/tools/sagent-op.sh

10 lines
223 B
Bash
Executable File

#!/usr/bin/env bash
set -e
op=$(command -v op || command -v op.exe || true)
if [[ ! -x $op ]]; then
echo "1password cli not found" > /dev/stderr
exit -1
fi
"$op" read "op://Personal/id25519-passphrase/$(hostname)"