Created
September 24, 2022 21:30
-
-
Save pkoch/85922d21a0d0686e111d04c641038eae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -ueo pipefail | |
if [ -z "${1:-}" ] | |
then | |
echo "Please provide the recepient as the argument" >&2 | |
exit 1 | |
fi | |
find . -type f | \ | |
while read -r path | |
do | |
gpg -ea -r "$1" "$path" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment