options is optional, defaults to an empty array

This commit is contained in:
ctro 2016-03-18 14:13:29 -06:00
parent f3a63e4879
commit 419427d092
2 changed files with 2 additions and 2 deletions

View file

@ -17,7 +17,7 @@ fi
# parse incoming config data
payload=`cat`
bucket=$(echo "$payload" | jq -r '.source.bucket')
options=$(echo "$payload" | jq -r '.source.options | join(" ")')
options=$(echo "$payload" | jq -r '.source.options // [] | join(" ")')
# export for `aws` cli
export AWS_ACCESS_KEY_ID=$(echo "$payload" | jq -r '.source.access_key_id')

View file

@ -17,7 +17,7 @@ fi
# parse incoming config data
payload=`cat`
bucket=$(echo "$payload" | jq -r '.source.bucket')
options=$(echo "$payload" | jq -r '.source.options | join(" ")')
options=$(echo "$payload" | jq -r '.source.options // [] | join(" ")')
# export for `aws` cli
export AWS_ACCESS_KEY_ID=$(echo "$payload" | jq -r '.source.access_key_id')