From 8ca8faf1de4d49932218c18ec2d98043789ce736 Mon Sep 17 00:00:00 2001 From: Amr Gharbeia Date: Thu, 16 Apr 2026 15:33:00 -0400 Subject: [PATCH] fix: Robust .env export loop in script --- literate/setup.org | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/literate/setup.org b/literate/setup.org index a4255ed..3623372 100644 --- a/literate/setup.org +++ b/literate/setup.org @@ -57,7 +57,7 @@ fi if [ -f "opencortex.asd" ] || [ -d "literate" ]; then if [ ! -f .env ]; then ./scripts/onboard-baremetal.sh; fi export SKILLS_DIR="$(grep "^SKILLS_DIR=" .env | cut -d"\"" -f2)" - if [ -f .env ]; then set -a; source .env; set +a; fi + while read -r line; do if [[ ! "$line" =~ ^# ]] && [[ "$line" =~ = ]]; then export "$line"; fi; done < .env echo -e "${BLUE}Starting OpenCortex via SBCL...${NC}" sbcl --non-interactive \ --eval "(load \"~/quicklisp/setup.lisp\")" \