fix: Robust .env export loop in script

This commit is contained in:
2026-04-16 15:33:00 -04:00
parent 08b5ecbd91
commit 8ca8faf1de

View File

@@ -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\")" \