]> git.r.bdr.sh - rbdr/dotfiles/blob - sensitive
Add server dnf
[rbdr/dotfiles] / sensitive
1 #!/usr/bin/env bash
2
3 sensitive_files=("config/aerc/accounts.conf")
4
5 if [[ "$1" == "update" ]]; then
6 echo "Updating"
7 for sensitive_file in $sensitive_files; do
8 gpg --output $sensitive_file.gpg --encrypt --recipient ruben@unlimited.pizza $sensitive_file
9 done
10 else
11 echo "Decrypting"
12 for sensitive_file in $sensitive_files; do
13 gpg --output $sensitive_file --decrypt $sensitive_file.gpg
14 done
15 fi