From bea0e29f8930b3a65629af4dac2346a54ce2776b Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Fri, 16 Aug 2024 12:52:04 -0700 Subject: [PATCH] #3 Switch to file descriptor 3 as input to sops --- homelab/.sops/decrypt-filter.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/homelab/.sops/decrypt-filter.sh b/homelab/.sops/decrypt-filter.sh index 4676319f..77bb2bcd 100755 --- a/homelab/.sops/decrypt-filter.sh +++ b/homelab/.sops/decrypt-filter.sh @@ -26,5 +26,6 @@ export SOPS_AGE_KEY_FILE=$HOME/.age/key } >> ~/decrypt-filter.stdout.log 2>> ~/decrypt-filter.stderr.log { - sops --decrypt $FILE_PATH + exec 3<<< "$(cat $1)" + sops --decrypt /dev/fd/3 } 2>> ~/decrypt-filter.stderr.log