Skip to content

Instantly share code, notes, and snippets.

@ultimagriever
Last active October 18, 2016 15:57
Show Gist options
  • Save ultimagriever/e98f0db94faa50166d51699696d97b8a to your computer and use it in GitHub Desktop.
Save ultimagriever/e98f0db94faa50166d51699696d97b8a to your computer and use it in GitHub Desktop.
Parse environment files
ENV_FILE=$1
while read -r line
do
IFS="=" read -ra keys <<< "$line"
travis env set ${keys[0]} ${keys[1]} --private --no-interactive
done < $ENV_FILE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment