adding scripts for encryption

This commit is contained in:
2024-06-10 23:18:02 +10:00
parent 3308018f45
commit 02ad7c9669
2 changed files with 22 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
#!/usr/bin/bash
set -e
filePath=$1
sops --encrypt --in-place $filePath
echo "File encrypted: $filePath."
git add $filePath
git commit -am "Encrypt file $filePath by GPG."