mirror of
https://github.com/vale981/phoebe
synced 2025-03-04 17:31:41 -05:00
When decrypting secrets, pass unencrypted files straight through
This commit is contained in:
parent
b2571a8c30
commit
accdc1bf54
1 changed files with 23 additions and 15 deletions
|
@ -114,6 +114,8 @@ decrypt_file() {
|
|||
mkdir -p "$(dirname "$dest_file")"
|
||||
echo "==> $dest_file"
|
||||
|
||||
case "$file" in
|
||||
*.gpg) # File is encrypted, use gpg:
|
||||
if [ -n "$symmetric_key" ]; then
|
||||
gpg --batch \
|
||||
--quiet \
|
||||
|
@ -129,6 +131,12 @@ decrypt_file() {
|
|||
--quiet \
|
||||
"$file" > "$dest_file"
|
||||
fi
|
||||
;;
|
||||
|
||||
*) # Just copy the file as-is:
|
||||
cp "$file" "$dest_file"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
################################################################################
|
||||
|
|
Loading…
Add table
Reference in a new issue