Skip to content

Commit

Permalink
easy-secrets-gen fix find
Browse files Browse the repository at this point in the history
Prior to this commit, the find command did not work because the '-depth'
parameter:

- cannot be placed before the name
- is a boolean flag that does not accept arguments.

I believe the intention was to use `-maxdepth 1` here.
  • Loading branch information
skrobul committed Feb 21, 2024
1 parent f6df9d1 commit 1e04196
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/easy-secrets-gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ kubeseal \
-f secret-nautobot-redis.yaml \
-w components/01-secrets/encrypted-nautobot-redis.yaml

for skrt in $(find . -name "secret-keystone*.yaml" -depth 1); do
for skrt in $(find . -maxdepth 1 -name "secret-keystone*.yaml"); do
encskrt=$(echo "${skrt}" | sed -e 's/secret-/components\/01-secrets\/encrypted-/')
kubeseal \
--scope cluster-wide \
Expand Down

0 comments on commit 1e04196

Please sign in to comment.