Files
homeprod/.pre-commit-sops.sh
2025-03-22 14:29:48 +01:00

8 lines
204 B
Bash
Executable File

#!/bin/bash
for filename in "$@"; do
if [[ "${filename}" =~ values.ya?ml$ ]] || [[ "${filename}" =~ secrets?.ya?ml$ ]]; then
sops -e -i "${filename}"
git add "${filename}"
fi
done