Improve POSIX shell compatibility in pre-push hook (#4053)

Co-authored-by: Peter Dave Hello <hsu@peterdavehello.org>
This commit is contained in:
Christiaan Arnoldus 2025-05-28 23:46:40 +02:00 committed by GitHub
parent 57038b75a0
commit b7f606db34
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -22,7 +22,7 @@ $pnpm_cmd run check-types
NEW_CHANGESETS=$(find .changeset -name "*.md" ! -name "README.md" | wc -l | tr -d ' ')
echo "Changeset files: $NEW_CHANGESETS"
if [ "$NEW_CHANGESETS" == "0" ]; then
if [ "$NEW_CHANGESETS" = "0" ]; then
echo "-------------------------------------------------------------------------------------"
echo "Changes detected. Please run 'pnpm changeset' to create a changeset if applicable."
echo "-------------------------------------------------------------------------------------"