Skip to content

Commit

Permalink
chore: improve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjayankur31 committed May 2, 2022
1 parent 038aee4 commit 5884a41
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion calliope.sh
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,12 @@ encrypt ()

encrypt_all ()
{
# Any files that do not end in ".gpg" are considered unencrypted, just encrypt those.
if [ -z ${encryptionId} ]
then
echo "Encryption is not enabled"
else
echo "Encrypting all files with $encryptionId"
echo "Encrypting all unencrypted files with $encryptionId"
find pdfs/ diary/ -type f -and -not -type l -and -not -name "*.gpg" -execdir $GPG_COMMAND --encrypt --sign -r "$encryptionId" "{}" \;
fi
}
Expand Down

0 comments on commit 5884a41

Please sign in to comment.