fix sane-secrets-update-keys script to work on shallow folders
This commit is contained in:
parent
4d0509af5d
commit
2228be615e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue