fix: Robust .env export loop in script
This commit is contained in:
@@ -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\")" \
|
||||
|
||||
Reference in New Issue
Block a user