Skip to content
This repository was archived by the owner on Feb 15, 2026. It is now read-only.

Commit cb8eb78

Browse files
authored
Merge pull request #41 from hatlabs/fix/env-missing-files
fix(ci): handle missing .env and .env.defaults in _env function
2 parents a01511d + ae3cdf2 commit cb8eb78

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

run

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,10 +396,12 @@ function _env {
396396
# the environment. First file has precedence!
397397
if [ -f .env ]; then
398398
_export_unset .env
399-
else
399+
elif [ -f .env.defaults ]; then
400400
# Make sure a .env file exists, otherwise docker-compose will complain
401401
cp .env.defaults .env
402+
_export_unset .env
402403
fi
404+
# If neither file exists, continue without env setup (CI environment)
403405
if [ -f .env.defaults ]; then
404406
_export_unset .env.defaults
405407
fi

0 commit comments

Comments
 (0)