escrcpy/.husky/pre-commit
2023-10-31 09:48:30 +08:00

4 lines
158 B
Bash

#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
git ls-files --stage | grep -E '^(100755|100644)' | sed 's/.\{42\}//' | xargs git update-index --chmod=+x