Skip to content

Commit 1dad93a

Browse files
Load .env only if present
1 parent c84780f commit 1dad93a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,15 @@ test: test-sbcl
5656
test-sbcl: $(lisps)
5757
sbclw ${SBCL_ARGS} --quit \
5858
--eval "(ql:quickload :cl-dotenv)" \
59-
--eval "(.env:load-env #P\"./.env\")" \
59+
--eval "(if (probe-file #P\"./.env\") (.env:load-env #P\"./.env\"))" \
6060
--load "build/setup.lisp" \
6161
--load "build/test.lisp"
6262

6363
.PHONY: test-ros
6464
test-ros: $(lisps)
6565
ros run -- ${SBCL_ARGS} --quit \
6666
--eval "(ql:quickload :cl-dotenv)" \
67-
--eval "(.env:load-env #P\"./.env\")" \
67+
--eval "(if (probe-file #P\"./.env\") (.env:load-env #P\"./.env\"))" \
6868
--load "build/setup.lisp" \
6969
--load "build/test.lisp"
7070

0 commit comments

Comments
 (0)