Use absolute path for opencode in run-ai.sh for cron compatibility
This commit is contained in:
@ -58,7 +58,7 @@ Your task: Continue building the web application. Read the current state from WO
|
|||||||
|
|
||||||
# Run opencode with the task
|
# Run opencode with the task
|
||||||
cd "$SCRIPT_DIR"
|
cd "$SCRIPT_DIR"
|
||||||
opencode --prompt "$TASK_PROMPT" 2>&1 | tee -a "$LOG_FILE"
|
/home/ernie/.opencode/bin/opencode --prompt "$TASK_PROMPT" 2>&1 | tee -a "$LOG_FILE"
|
||||||
EXIT_CODE=${PIPESTATUS[0]}
|
EXIT_CODE=${PIPESTATUS[0]}
|
||||||
|
|
||||||
if [ $EXIT_CODE -eq 0 ]; then
|
if [ $EXIT_CODE -eq 0 ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user