Skip to content
Permalink
Browse files

Decompress after decrypt

  • Loading branch information...
RobbieF committed Sep 10, 2019
1 parent ce7988c commit cf00df97a3b05975bd7d0ac384a972b26d70f98a
Showing with 6 additions and 3 deletions.
  1. +6 −3 decrypt-support.sh
@@ -5,10 +5,13 @@ if [[ $1 = "" ]] || [[ $2 = "" ]]; then
exit
fi

/usr/bin/gpg --yes --batch --passphrase="$2" --decrypt $1 > /tmp/support.tar.gz
mkdir support
/usr/bin/gpg --yes --batch --passphrase="$2" --decrypt $1 > support/support.tar.gz

if [[ -s /tmp/support.tar.gz ]]; then
echo File saved to /tmp/support.tar.gz
if [[ -s support/support.tar.gz ]]; then
cd support
tar -xvzf support.tar.gz
rm support.tar.gz
else
echo Error decrypting file. Correct HWID?
fi

0 comments on commit cf00df9

Please sign in to comment.
You can’t perform that action at this time.