mirror of
https://github.com/Xevion/dotfiles.git
synced 2025-12-09 16:06:59 -06:00
12 lines
409 B
Bash
Executable File
12 lines
409 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# note: CHEZMOI_UPDATE will be set if this was invoked indirectly by 'chezmoi update --init'
|
|
set -eu
|
|
|
|
# While key.txt is managed by Chezmoi, it's required for encrypted operations and needed to bootstrap other operations.
|
|
if [ ! -f ~/key.txt ]; then
|
|
rbw get "key.txt (age)" --field notes >>~/key.txt
|
|
rbw get "key.txt (age)" --field password >>~/key.txt
|
|
echo "key.txt bootstrapped"
|
|
fi
|