mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-23 08:21:46 +03:00
15 lines
352 B
Bash
Executable File
15 lines
352 B
Bash
Executable File
#!/usr/bin/env sh
|
|
. "$(dirname -- "$0")/_/husky.sh"
|
|
|
|
# Show just the current branch in Git
|
|
# See https://stackoverflow.com/questions/1417957/show-just-the-current-branch-in-git/1418022#1418022
|
|
current_branch=$(git rev-parse --abbrev-ref HEAD)
|
|
|
|
default_branch="master"
|
|
|
|
if test $current_branch != $default_branch; then
|
|
exit 0
|
|
fi
|
|
|
|
pnpm run build:check
|