fix: wb script to ensure SOPS_CONFIG pointing to dotfiles

This commit is contained in:
Ray Andrew 2025-12-05 11:07:47 -06:00
parent efdb64216f
commit d9b8015e4f
Signed by: rayandrew
SSH key fingerprint: SHA256:XYrYrxF0Z3A72n8P/p6mqPRNQZT22F88XcLsG+kX4xw
2 changed files with 9 additions and 6 deletions

3
bin/wb
View file

@ -4,6 +4,9 @@ thisFile=$(realpath "$0")
DOTFILES="${DOTFILES:-$HOME/dotfiles}" DOTFILES="${DOTFILES:-$HOME/dotfiles}"
BOOKMARKS_FILE="${DOTFILES}/secrets/wb.txt" BOOKMARKS_FILE="${DOTFILES}/secrets/wb.txt"
# Ensure sops can find the config file from any directory
export SOPS_CONFIG="${DOTFILES}/.sops.yaml"
# Decrypt bookmarks from sops # Decrypt bookmarks from sops
getBookmarks() { getBookmarks() {
if [[ -f ${BOOKMARKS_FILE} ]]; then if [[ -f ${BOOKMARKS_FILE} ]]; then

File diff suppressed because one or more lines are too long