Skip to content

Commit 1201ed5

Browse files
PeterDaveHellochrarnoldus
authored andcommitted
Improve POSIX shell compatibility in pre-push hook
Hello Roo Team! We received this contribution on the Kilo side and thought it might be useful to you! This change improves consistency in the pre-push script and improves compatibility with different types of shells. Original pull request: Kilo-Org/kilocode#515
1 parent 9d4b4eb commit 1201ed5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.husky/pre-push

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ $pnpm_cmd run check-types
2222
NEW_CHANGESETS=$(find .changeset -name "*.md" ! -name "README.md" | wc -l | tr -d ' ')
2323
echo "Changeset files: $NEW_CHANGESETS"
2424

25-
if [ "$NEW_CHANGESETS" == "0" ]; then
25+
if [ "$NEW_CHANGESETS" = "0" ]; then
2626
echo "-------------------------------------------------------------------------------------"
2727
echo "Changes detected. Please run 'pnpm changeset' to create a changeset if applicable."
2828
echo "-------------------------------------------------------------------------------------"

0 commit comments

Comments
 (0)