adding scripts for encryption
This commit is contained in:
10
scripts/encript-file-by-gpg.sh
Normal file
10
scripts/encript-file-by-gpg.sh
Normal 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."
|
||||
Reference in New Issue
Block a user