fix sane-secrets-update-keys script to work on shallow folders

This commit is contained in:
colin 2022-06-20 16:03:30 -07:00
parent 4d0509af5d
commit 2228be615e
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
# after modifying .sops.yaml, run this to re-encode all secrets to the new keys
# pass the base directory (under which *everything* is a secret) as argument
for i in $1/**/*
for i in $(find "$1" -print)
do
yes | sops updatekeys "$i"
done