4 核 8G 同时跑协会站点、PlayEdu 和估价智能体,并让门户专家页底色透出页面背景。 Co-authored-by: Cursor <cursoragent@cursor.com>
22 lines
538 B
Bash
Executable File
22 lines
538 B
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
|
|
git_path() {
|
|
git rev-parse --git-path "$1"
|
|
}
|
|
|
|
if [ -f "$(git_path MERGE_HEAD)" ] || \
|
|
[ -f "$(git_path CHERRY_PICK_HEAD)" ] || \
|
|
[ -f "$(git_path REVERT_HEAD)" ] || \
|
|
[ -f "$(git_path SQUASH_MSG)" ] || \
|
|
[ -d "$(git_path rebase-merge)" ] || \
|
|
[ -d "$(git_path rebase-apply)" ]; then
|
|
echo "Git operation in progress, skipping staged checks; CI validates the result."
|
|
exit 0
|
|
fi
|
|
|
|
root=$(CDPATH= cd -- "$(dirname "$0")/.." && pwd)
|
|
cd "$root"
|
|
export PATH="$root/node_modules/.bin:$PATH"
|
|
vp staged
|