From 3fc0c653612cb3c06f0f72803b66a82e3c915dc5 Mon Sep 17 00:00:00 2001 From: PandaJW <5168pandayoyo@gmail.com> Date: Wed, 19 Jun 2024 00:38:12 +0800 Subject: [PATCH] lets try this --- decrypt_secret.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/decrypt_secret.sh b/decrypt_secret.sh index dbd6374..a1cf4e9 100644 --- a/decrypt_secret.sh +++ b/decrypt_secret.sh @@ -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 \ No newline at end of file + +# Optionally, you can output the decrypted file path for verification +echo "Decrypted file: edusync-7bd5e-firebase-adminsdk-x49uh-af084a6314.json" \ No newline at end of file