mirror of
https://github.com/openclaw/openclaw.git
synced 2026-02-09 05:19:32 +08:00
8 lines
220 B
Bash
Executable File
8 lines
220 B
Bash
Executable File
#!/bin/sh
|
|
FILES=$(git diff --cached --name-only --diff-filter=ACMR | sed 's| |\\ |g')
|
|
[ -z "$FILES" ] && exit 0
|
|
echo "$FILES" | xargs pnpm format:fix --no-error-on-unmatched-pattern
|
|
echo "$FILES" | xargs git add
|
|
|
|
exit 0
|