mirror of
https://github.com/StackExchange/blackbox.git
synced 2025-12-16 03:23:00 +02:00
re-encrypt and shred after edit
This commit is contained in:
@@ -24,4 +24,11 @@ for param in """$@""" ; do
|
|||||||
prepare_keychain
|
prepare_keychain
|
||||||
decrypt_file "$encrypted_file" "$unencrypted_file"
|
decrypt_file "$encrypted_file" "$unencrypted_file"
|
||||||
$EDITOR $unencrypted_file
|
$EDITOR $unencrypted_file
|
||||||
|
|
||||||
|
encrypt_file "$unencrypted_file" "$encrypted_file"
|
||||||
|
shred_file "$unencrypted_file"
|
||||||
|
|
||||||
|
echo "========== UPDATED ${encrypted_file}"
|
||||||
|
echo "Likely next step:"
|
||||||
|
echo " git commit -m\"${encrypted_file} updated\" $encrypted_file"
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user