fix(install): add lib/ directory copy for response_analyzer.sh
The install.sh was missing the lib/ directory copy, causing ralph_loop.sh to fail when sourcing response_analyzer.sh and circuit_breaker.sh. Changes: - Add mkdir -p "$RALPH_HOME/lib" to create_install_dirs() - Add cp -r "$SCRIPT_DIR/lib/"* "$RALPH_HOME/lib/" to install_scripts() - Add chmod +x for lib/*.sh scripts 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
d9903f860a
commit
a98a167140
1 changed files with 7 additions and 2 deletions
|
|
@ -75,6 +75,7 @@ create_install_dirs() {
|
||||||
mkdir -p "$INSTALL_DIR"
|
mkdir -p "$INSTALL_DIR"
|
||||||
mkdir -p "$RALPH_HOME"
|
mkdir -p "$RALPH_HOME"
|
||||||
mkdir -p "$RALPH_HOME/templates"
|
mkdir -p "$RALPH_HOME/templates"
|
||||||
|
mkdir -p "$RALPH_HOME/lib"
|
||||||
|
|
||||||
log "SUCCESS" "Directories created: $INSTALL_DIR, $RALPH_HOME"
|
log "SUCCESS" "Directories created: $INSTALL_DIR, $RALPH_HOME"
|
||||||
}
|
}
|
||||||
|
|
@ -86,6 +87,9 @@ install_scripts() {
|
||||||
# Copy templates to Ralph home
|
# Copy templates to Ralph home
|
||||||
cp -r "$SCRIPT_DIR/templates/"* "$RALPH_HOME/templates/"
|
cp -r "$SCRIPT_DIR/templates/"* "$RALPH_HOME/templates/"
|
||||||
|
|
||||||
|
# Copy lib scripts (response_analyzer.sh, circuit_breaker.sh)
|
||||||
|
cp -r "$SCRIPT_DIR/lib/"* "$RALPH_HOME/lib/"
|
||||||
|
|
||||||
# Create the main ralph command
|
# Create the main ralph command
|
||||||
cat > "$INSTALL_DIR/ralph" << 'EOF'
|
cat > "$INSTALL_DIR/ralph" << 'EOF'
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
@ -141,6 +145,7 @@ EOF
|
||||||
chmod +x "$INSTALL_DIR/ralph-import"
|
chmod +x "$INSTALL_DIR/ralph-import"
|
||||||
chmod +x "$RALPH_HOME/ralph_monitor.sh"
|
chmod +x "$RALPH_HOME/ralph_monitor.sh"
|
||||||
chmod +x "$RALPH_HOME/ralph_import.sh"
|
chmod +x "$RALPH_HOME/ralph_import.sh"
|
||||||
|
chmod +x "$RALPH_HOME/lib/"*.sh
|
||||||
|
|
||||||
log "SUCCESS" "Ralph scripts installed to $INSTALL_DIR"
|
log "SUCCESS" "Ralph scripts installed to $INSTALL_DIR"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue