Skip to content

Commit

Permalink
Changed how value is read in flux bootstrap from yaml to allow : char
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnajar authored and jimmykarily committed Aug 26, 2024
1 parent 115b74c commit 77dcd1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flux/flux-bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ declare -a cmdline
for setting in "${envs[@]}"; do
if [[ $setting != "null" ]] && [[ $setting != "" ]]; then
env=$(echo "$setting" | cut -d: -f1)
value=$(echo "$setting" | cut -d':' -f2 | sed -E 's/^ //g')
value=$(echo "$setting" | sed -n 's/^[^:]*: *//p')
if [[ "${value}x" != "x" ]]; then
export "$env"="$value"
fi
Expand All @@ -66,7 +66,7 @@ done
for setting in "${args[@]}"; do
if [[ $setting != "null" ]] && [[ $setting != "" ]]; then
arg=$(echo "$setting" | cut -d: -f1)
value=$(echo "$setting" | cut -d':' -f2 | sed -E 's/^ //g')
value=$(echo "$setting" | sed -n 's/^[^:]*: *//p')
if [[ "${value}x" != "x" ]]; then
cmdline+=("--$arg" "$value")
fi
Expand Down

0 comments on commit 77dcd1f

Please sign in to comment.