fix: Update secrets.sh to decrypt and output .conf files instead of removing .gpg files
This commit is contained in:
@@ -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..."
|
||||
|
@@ -1,4 +1,4 @@
|
||||
Host *
|
||||
IdentityAgent ~/.1password/agent.sock
|
||||
|
||||
Include ~/.ssh/config.d/*
|
||||
Include ~/.ssh/config.d/*.conf
|
||||
|
Reference in New Issue
Block a user