mirror of
https://github.com/openclaw/openclaw.git
synced 2026-02-18 08:07:32 +00:00
11 lines
273 B
Bash
Executable File
11 lines
273 B
Bash
Executable File
#!/bin/sh
|
|
FILES=$(git diff --cached --name-only --diff-filter=ACMR | sed 's| |\\ |g')
|
|
[ -z "$FILES" ] && exit 0
|
|
|
|
# Lint and format staged files
|
|
echo "$FILES" | xargs pnpm exec oxlint --fix
|
|
echo "$FILES" | xargs pnpm exec oxfmt --write
|
|
echo "$FILES" | xargs git add
|
|
|
|
exit 0
|