Created
August 19, 2026 20:45
-
-
Save creichert/1d4f337dc44aa9045aaffbbb5889bd38 to your computer and use it in GitHub Desktop.
Load .env vars into build environment from a Makefile
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
| -include .env | |
| DOTENV_REGEXP := ^\#\|^$$ | |
| export $(shell cut -d= -s -f1 .env | grep -v '$(DOTENV_REGEXP)' || true) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment