fix: update generate_gitconfig to use go-yq without -r flag
This commit is contained in:
parent
0a76fb12d8
commit
5cf7a35311
@ -97,8 +97,8 @@ generate_gitconfig() {
|
||||
local userdir="$HOME/secrets/$PERSON"
|
||||
local name email
|
||||
|
||||
name=$(yq -r ".\"$PERSON\".name" "$access" 2>/dev/null || echo)
|
||||
email=$(yq -r ".\"$PERSON\".email" "$access" 2>/dev/null || echo)
|
||||
name=$(yq ".\"$ws\".name" "$access" 2>/dev/null || echo)
|
||||
email=$(yq ".\"$ws\".email" "$access" 2>/dev/null || echo)
|
||||
|
||||
if [[ -z "$name" || -z "$email" ]]; then
|
||||
log ERROR "Missing name/email for '$PERSON' in $access"
|
||||
|
Loading…
x
Reference in New Issue
Block a user