Created
February 27, 2019 07:11
-
-
Save jasonwarta/a09cefb422e77babde627a607be611f6 to your computer and use it in GitHub Desktop.
Load .env on Windows
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
foreach($line in Get-Content docker.env) { | |
$new_env_var = "`$env:" + $line.replace('=', ' = "') + '"' | |
Invoke-Expression $new_env_var | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment