actions: style
This commit is contained in:
1 parent
d03a144566
commit
c0399df117
3 files changed
+5
-4
No files matched your search
@@ -40,7 +40,6 @@ runs:
|
||||
SOPS_AGE_KEY: ${{ inputs.sops-age-key }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
|
||||
echo "searching for SOPS files to decrypt..."
|
||||
|
||||
while IFS= read -r -d '' file; do
|
||||
@@ -48,9 +47,7 @@ runs:
|
||||
output_file="$dir/${base/.sops/}"
|
||||
|
||||
echo "decrypting '$file' to '$output_file'"
|
||||
|
||||
tmp=$(mktemp "$dir/.sops-decrypt.XXXXXX")
|
||||
|
||||
if ! sops --decrypt "$file" > "$tmp" || [ ! -s "$tmp" ]; then
|
||||
echo "decryption of '$file' failed or produced empty output" >&2
|
||||
rm -f "$tmp"
|
||||
@@ -60,5 +57,4 @@ runs:
|
||||
chmod 600 "$tmp"
|
||||
mv "$tmp" "$output_file"
|
||||
done < <(find . -type f -name "*.sops.*" -not -name ".sops.yaml" -print0)
|
||||
|
||||
echo "SOPS decryption complete."
|
||||
Reference in new issue
Block a user