Skip to content

Instantly share code, notes, and snippets.

@jch254
Created March 9, 2019 07:03
Show Gist options
  • Save jch254/2e1210a70b6c96bd11646a0d4afb98e4 to your computer and use it in GitHub Desktop.
Save jch254/2e1210a70b6c96bd11646a0d4afb98e4 to your computer and use it in GitHub Desktop.
echo "Exporting environment variables from env.variables section of $1"
export $(
cat "$1" |
shyaml get-values-0 env.variables |
while IFS='' read -r -d '' key && IFS='' read -r -d '' value; do
echo $key=$value
done
)
echo "Successfully exported environment variables from $1"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment