fix: update generate_gitconfig to use go-yq without -r flag

This commit is contained in:
null 2025-05-17 17:22:13 +00:00
parent 0a76fb12d8
commit 5cf7a35311

View File

@ -97,8 +97,8 @@ generate_gitconfig() {
local userdir="$HOME/secrets/$PERSON" local userdir="$HOME/secrets/$PERSON"
local name email local name email
name=$(yq -r ".\"$PERSON\".name" "$access" 2>/dev/null || echo) name=$(yq ".\"$ws\".name" "$access" 2>/dev/null || echo)
email=$(yq -r ".\"$PERSON\".email" "$access" 2>/dev/null || echo) email=$(yq ".\"$ws\".email" "$access" 2>/dev/null || echo)
if [[ -z "$name" || -z "$email" ]]; then if [[ -z "$name" || -z "$email" ]]; then
log ERROR "Missing name/email for '$PERSON' in $access" log ERROR "Missing name/email for '$PERSON' in $access"