19 lines
245 B
Bash
Executable File
19 lines
245 B
Bash
Executable File
#!/bin/bash
|
|
|
|
#pnpm pretty-quick --staged
|
|
|
|
# 运行 clippy fmt
|
|
cd src-tauri
|
|
cargo fmt
|
|
|
|
if [ $? -ne 0 ]; then
|
|
echo "rustfmt failed to format the code. Please fix the issues and try again."
|
|
exit 1
|
|
fi
|
|
cd ..
|
|
|
|
git add .
|
|
|
|
# 允许提交
|
|
exit 0
|