rpcs3/.travis/export-azure-vars.sh
JohnHolmesII 8581a2775a CI: Add workaround for exporting variables in Azure
Using '-x' to echo commands in the shell causes
the Azure process commands to be processed twice
2020-03-29 14:10:07 +03:00

14 lines
431 B
Bash

#!/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"
done < ".travis/azure-vars.env"