try fix yq parser
This commit is contained in:
@@ -32,7 +32,7 @@ for service_dir in ./*/; do
|
|||||||
install -d -m "$DIR_MODE" -o root -g "$SECRETS_GROUP" -- "$out_dir"
|
install -d -m "$DIR_MODE" -o root -g "$SECRETS_GROUP" -- "$out_dir"
|
||||||
|
|
||||||
sops -d "$secrets_file" \
|
sops -d "$secrets_file" \
|
||||||
| yq -r -0 'to_entries[] | .key, .value' \
|
| yq -r -0 'to_entries[] | "\(.key)\u0000\(.value)\u0000"' \
|
||||||
| while IFS= read -r -d '' key && IFS= read -r -d '' value; do
|
| while IFS= read -r -d '' key && IFS= read -r -d '' value; do
|
||||||
[[ "$key" =~ ^[A-Za-z0-9_][-A-Za-z0-9_]*$ ]] || { echo "skip bad key: $key" >&2; continue; }
|
[[ "$key" =~ ^[A-Za-z0-9_][-A-Za-z0-9_]*$ ]] || { echo "skip bad key: $key" >&2; continue; }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user