Skip to content

Commit

Permalink
lets try this
Browse files Browse the repository at this point in the history
  • Loading branch information
APandamonium1 committed Jun 18, 2024
1 parent 830de37 commit 3fc0c65
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions decrypt_secret.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
#!/bin/sh

# Decrypt the file
mkdir $HOME/secrets
# mkdir $HOME/secrets
# --batch to prevent interactive command
# --yes to assume "yes" for questions
gpg --quiet --batch --yes --decrypt --passphrase="$FIREBASE_ADMIN_PASSPHRASE" \
--output edusync-7bd5e-firebase-adminsdk-x49uh-af084a6314.json edusync-7bd5e-firebase-adminsdk-x49uh-af084a6314.json.gpg
# --output $HOME/secrets/edusync-7bd5e-firebase-adminsdk-x49uh-af084a6314.json edusync-7bd5e-firebase-adminsdk-x49uh-af084a6314.json.gpg
--output edusync-7bd5e-firebase-adminsdk-x49uh-af084a6314.json edusync-7bd5e-firebase-adminsdk-x49uh-af084a6314.json.gpg

# Optionally, you can output the decrypted file path for verification
echo "Decrypted file: edusync-7bd5e-firebase-adminsdk-x49uh-af084a6314.json"

0 comments on commit 3fc0c65

Please sign in to comment.