From d79da84e3ad275b36aab724fb8d3bafbcddf8449 Mon Sep 17 00:00:00 2001 From: Menno van Leeuwen Date: Fri, 23 Aug 2024 00:03:10 +0200 Subject: [PATCH] fix: Update secrets.sh to decrypt and output .conf files instead of removing .gpg files --- bin/actions/secrets.sh | 2 +- config/ssh/config | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/actions/secrets.sh b/bin/actions/secrets.sh index ffaf597..7d4f7cf 100755 --- a/bin/actions/secrets.sh +++ b/bin/actions/secrets.sh @@ -26,7 +26,7 @@ if [[ "$2" == "decrypt" ]]; then for file in ~/.ssh/config.d/*.gpg; do filename=$(basename $file .gpg) - gpg --quiet --batch --yes --decrypt --passphrase="$password" --output ~/.ssh/config.d/$filename $file + gpg --quiet --batch --yes --decrypt --passphrase="$password" --output ~/.ssh/config.d/$filename.conf $file done elif [[ "$2" == "encrypt" ]]; then printfe "%s\n" "cyan" "Encrypting .ssh/config.d/ files..." diff --git a/config/ssh/config b/config/ssh/config index df78326..18ded0c 100644 --- a/config/ssh/config +++ b/config/ssh/config @@ -1,4 +1,4 @@ Host * IdentityAgent ~/.1password/agent.sock -Include ~/.ssh/config.d/* +Include ~/.ssh/config.d/*.conf