fix(setup): Correct TUI quickload syntax, robust Quicklisp path, and persistent PATH configuration
Some checks failed
Deploy-Agent-V15-Stdin / JOB-V15-STDIN (push) Failing after 25s

This commit is contained in:
2026-04-17 18:26:32 -04:00
parent c7ebf2fc93
commit 8f771762bc
2 changed files with 24 additions and 4 deletions

View File

@@ -110,6 +110,16 @@ setup_system() {
mkdir -p "$HOME/.local/bin" mkdir -p "$HOME/.local/bin"
ln -sf "$SCRIPT_DIR/opencortex.sh" "$HOME/.local/bin/opencortex" ln -sf "$SCRIPT_DIR/opencortex.sh" "$HOME/.local/bin/opencortex"
# Ensure ~/.local/bin is in PATH for future sessions
for shell_config in "$HOME/.bashrc" "$HOME/.profile"; do
if [ -f "$shell_config" ]; then
if ! grep -q ".local/bin" "$shell_config"; then
echo 'export PATH="$HOME/.local/bin:$PATH"' >> "$shell_config"
fi
fi
done
export PATH="$HOME/.local/bin:$PATH"
echo -e "${YELLOW}--- Compiling and Loading OpenCortex (this may take a minute) ---${NC}" echo -e "${YELLOW}--- Compiling and Loading OpenCortex (this may take a minute) ---${NC}"
sbcl --non-interactive \ sbcl --non-interactive \
@@ -192,9 +202,9 @@ if [[ "$1" == "tui" ]]; then
# Launch TUI # Launch TUI
echo -e "${BLUE}Launching Croatoan TUI...${NC}" echo -e "${BLUE}Launching Croatoan TUI...${NC}"
exec sbcl --non-interactive \ exec sbcl --non-interactive \
--load ~/quicklisp/setup.lisp \ --eval "(load (merge-pathnames \"quicklisp/setup.lisp\" (user-homedir-pathname)))" \
--eval "(push (truename \"$SCRIPT_DIR/\") asdf:*central-registry*)" \ --eval "(push (truename \"$SCRIPT_DIR/\") asdf:*central-registry*)" \
--eval "(ql:quickload '(:opencortex :croatoan)/tui :silent t)" \ --eval "(ql:quickload :opencortex/tui)" \
--eval "(opencortex.tui:main)" --eval "(opencortex.tui:main)"
fi fi

View File

@@ -101,6 +101,16 @@ setup_system() {
mkdir -p "$HOME/.local/bin" mkdir -p "$HOME/.local/bin"
ln -sf "$SCRIPT_DIR/opencortex.sh" "$HOME/.local/bin/opencortex" ln -sf "$SCRIPT_DIR/opencortex.sh" "$HOME/.local/bin/opencortex"
# Ensure ~/.local/bin is in PATH for future sessions
for shell_config in "$HOME/.bashrc" "$HOME/.profile"; do
if [ -f "$shell_config" ]; then
if ! grep -q ".local/bin" "$shell_config"; then
echo 'export PATH="$HOME/.local/bin:$PATH"' >> "$shell_config"
fi
fi
done
export PATH="$HOME/.local/bin:$PATH"
echo -e "${YELLOW}--- Compiling and Loading OpenCortex (this may take a minute) ---${NC}" echo -e "${YELLOW}--- Compiling and Loading OpenCortex (this may take a minute) ---${NC}"
sbcl --non-interactive \ sbcl --non-interactive \
@@ -183,9 +193,9 @@ if [[ "$1" == "tui" ]]; then
# Launch TUI # Launch TUI
echo -e "${BLUE}Launching Croatoan TUI...${NC}" echo -e "${BLUE}Launching Croatoan TUI...${NC}"
exec sbcl --non-interactive \ exec sbcl --non-interactive \
--load ~/quicklisp/setup.lisp \ --eval "(load (merge-pathnames \"quicklisp/setup.lisp\" (user-homedir-pathname)))" \
--eval "(push (truename \"$SCRIPT_DIR/\") asdf:*central-registry*)" \ --eval "(push (truename \"$SCRIPT_DIR/\") asdf:*central-registry*)" \
--eval "(ql:quickload '(:opencortex :croatoan)/tui :silent t)" \ --eval "(ql:quickload :opencortex/tui)" \
--eval "(opencortex.tui:main)" --eval "(opencortex.tui:main)"
fi fi