reupload
This commit is contained in:
13
arch-user/bin/gpg/reencrypt-to-sym.sh
Executable file
13
arch-user/bin/gpg/reencrypt-to-sym.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
if [ -z "$PASSPHRASE" ]; then
|
||||
read -srp "Password: " PASSPHRASE
|
||||
echo
|
||||
fi
|
||||
export PASSPHRASE
|
||||
|
||||
bash ~/.local/bin/alg/file-tree-apply.sh "$1" "$2" '*.gpg' \
|
||||
'if [ ! -f "$2" ]; then gpg --decrypt "$1" | gpg --symmetric --output "$2" --passphrase "$PASSPHRASE" --batch --yes; fi'
|
||||
|
||||
echo ok
|
||||
Reference in New Issue
Block a user