chore: add -r to yq to return quated strings
This commit is contained in:
parent
aebb5eab85
commit
4f0e173ce2
@ -98,8 +98,8 @@ generate_gitconfig() {
|
|||||||
local userdir="$HOME/secrets/$ws"
|
local userdir="$HOME/secrets/$ws"
|
||||||
local name email
|
local name email
|
||||||
|
|
||||||
name=$(yq ".\"$ws\".name" "$access" 2>/dev/null || echo)
|
name=$(yq -r ".\"$ws\".name" "$access" 2>/dev/null || echo)
|
||||||
email=$(yq ".\"$ws\".email" "$access" 2>/dev/null || echo)
|
email=$(yq -r ".\"$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 '$ws' in $access"
|
log ERROR "Missing name/email for '$ws' in $access"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user