Download tasks/e4ecde-t2-browser-form-fix/solution/solve.sh from OpenClaw/ShellBench: direct link, hf CLI and curl.
- Browser
- Download file 532 Bytes
-
https://huggingface.co/datasets/OpenClaw/ShellBench/resolve/main/tasks/e4ecde-t2-browser-form-fix/solution/solve.sh
- Command line
-
hf download hf://datasets/OpenClaw/ShellBench/tasks/e4ecde-t2-browser-form-fix/solution/solve.sh
-
curl -L -o solve.sh https://huggingface.co/datasets/OpenClaw/ShellBench/resolve/main/tasks/e4ecde-t2-browser-form-fix/solution/solve.sh
532 Bytes
| set -euo pipefail | |
| export PYTHONPATH="${WORKSPACE_DIR:-/app}${PYTHONPATH:+:$PYTHONPATH}" | |
| cd "${WORKSPACE_DIR:-/app}" | |
| python3 - <<'PY' | |
| from pathlib import Path | |
| path = Path("app.js") | |
| source = path.read_text(encoding="utf-8") | |
| wrong = 'document.getElementById("contact-formm")' | |
| right = 'document.getElementById("contact-form")' | |
| if wrong not in source: | |
| raise SystemExit("app.js no longer contains the expected selector typo") | |
| path.write_text(source.replace(wrong, right), encoding="utf-8") | |
| PY | |
| node --check app.js | |