blob: 8a08c799da042ed1cff51a8ce168459766598181 (
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
age -R ~/.dotfiles/recipients.txt -o $sensitive_file.age $sensitive_file
done
else
echo "Decrypting"
for sensitive_file in $sensitive_files; do
age -d -i $1 -o $sensitive_file $sensitive_file.age
done
fi
|