Created
September 29, 2016 20:03
-
-
Save chrisjarman/72468930d2d41b1210dfbf1968da08b2 to your computer and use it in GitHub Desktop.
Bash script to substitute environment variables for placeholders, in-place.
This file contains 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 | |
TEMP=`mktemp` | |
envsubst < $1 > $TEMP | |
mv $TEMP $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment