fix: wb script to ensure SOPS_CONFIG pointing to dotfiles
This commit is contained in:
parent
efdb64216f
commit
d9b8015e4f
2 changed files with 9 additions and 6 deletions
3
bin/wb
3
bin/wb
|
|
@ -4,6 +4,9 @@ thisFile=$(realpath "$0")
|
|||
DOTFILES="${DOTFILES:-$HOME/dotfiles}"
|
||||
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
|
||||
getBookmarks() {
|
||||
if [[ -f ${BOOKMARKS_FILE} ]]; then
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue