aboutsummaryrefslogtreecommitdiff
path: root/sensitive
blob: 2c5c66041cebdd6ce0b04bffe004a32f8ddcb758 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env bash

sensitive_files=("config/aerc/accounts.conf")

if [[ "$1" == "update" ]]; then
  echo "Updating"
  for sensitive_file in $sensitive_files; do
    gpg --output $sensitive_file.gpg --encrypt --recipient ruben@unlimited.pizza $sensitive_file
  done
else
  echo "Decrypting"
  for sensitive_file in $sensitive_files; do
    gpg --output $sensitive_file --decrypt $sensitive_file.gpg
  done
fi