mirror of
https://github.com/obra/superpowers.git
synced 2026-04-16 02:02:41 +00:00
test: add --add-dir flag for temp directory access
Claude needs explicit permission to access the temp test directory. Added --add-dir flag to grant access to the test project.
This commit is contained in:
@@ -149,7 +149,7 @@ Begin now. Execute the plan."
|
||||
|
||||
echo "Running Claude (output will be shown below and saved to $OUTPUT_FILE)..."
|
||||
echo "================================================================================"
|
||||
cd "$SCRIPT_DIR/../.." && timeout 1800 claude -p "$PROMPT" --allowed-tools=all 2>&1 | tee "$OUTPUT_FILE" || {
|
||||
cd "$SCRIPT_DIR/../.." && timeout 1800 claude -p "$PROMPT" --allowed-tools=all --add-dir "$TEST_PROJECT" 2>&1 | tee "$OUTPUT_FILE" || {
|
||||
echo ""
|
||||
echo "================================================================================"
|
||||
echo "EXECUTION FAILED (exit code: $?)"
|
||||
|
||||
Reference in New Issue
Block a user