2020-03-28 00:19:44 +00:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
|
|
|
# Export variables for later stages of the Azure pipeline
|
|
|
|
# Values done in this manner will appear as environment variables
|
|
|
|
# in later stages.
|
|
|
|
|
|
|
|
# From pure-sh-bible
|
|
|
|
# Setting 'IFS' tells 'read' where to split the string.
|
|
|
|
while IFS='=' read -r key val; do
|
|
|
|
# Skip over lines containing comments.
|
|
|
|
[ "${key##\#*}" ] || continue
|
|
|
|
echo "##vso[task.setvariable variable=$key]$val"
|
2020-04-07 02:53:23 +00:00
|
|
|
done < ".ci/azure-vars.env"
|