Skip to content

Commit

Permalink
fix gpg file detection bug
Browse files Browse the repository at this point in the history
  • Loading branch information
TrentonAdams committed Jun 4, 2021
1 parent 2bcefbf commit a9d09de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 2.3.3
- make gpg file detection more reliable. Specifically the previous method
didn't work unless the gpg key was already cached

### 2.3.2
- fix gpg decryption bug

Expand Down
2 changes: 1 addition & 1 deletion components/restore.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function doRestore() {

for backup in ${source_folder}/${backup_name}.*.backup*; do
echo "restoring ${backup}"
gpg --pinentry-mode cancel --list-packets "${backup}" > /dev/null
file "${backup}"| grep PGP
if [ $? -eq 0 ]; then
gpg -d -o - "${backup}" | tar -C "${destination_folder}" -g /dev/null -xvz
else
Expand Down

0 comments on commit a9d09de

Please sign in to comment.