Forked from danielgomezrico/cp-env-to-properties.sh
Created
October 19, 2016 20:54
-
-
Save orendon/ebf2a3ce289c518b9d3c38d7de1604e3 to your computer and use it in GitHub Desktop.
Gradle / Bash - copy all env variables to app/gradle.properties (used to copy secret env vars from travis or circle CI to build android projects)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Copy env variables to app module gradle properties file | |
# | |
set +x // dont print the next lines on run script | |
echo $(printenv) | tr ' ' '\n' > app/gradle.properties | |
set -x |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment