Skip to content

Commit ea6230c

Browse files
spiralgangCopilot
andauthored
Update run_demo.sh
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 8f38363 commit ea6230c

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

run_demo.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,12 @@ fi
1313

1414
# 2. Modify the manifest for the demo
1515
echo "--- Modifying SCM for Demo ---"
16-
# Using sed to change the log_file path in the manifest
17-
sed -i 's/thought_log.txt/demo_thought_log.txt/' polyglot_state.yaml
16+
# Using yq to change the log_file path in the manifest
17+
if ! command -v yq >/dev/null 2>&1; then
18+
echo "yq is required but not installed. Please install yq (https://mikefarah.gitbook.io/yq/) and rerun this script."
19+
exit 1
20+
fi
21+
yq -i '.log_file = "demo_thought_log.txt"' polyglot_state.yaml
1822

1923
# 3. Launch the agent with the modified SCM
2024
echo "--- Launching Agent ---"

0 commit comments

Comments
 (0)