From 48ec2fa826a1f745bb2c3f49431347bae6df9941 Mon Sep 17 00:00:00 2001 From: Rocky Murdoch Date: Fri, 27 Sep 2024 13:06:48 +0300 Subject: [PATCH] chore: fix git pre-push hook --- .husky/pre-push | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.husky/pre-push b/.husky/pre-push index 669150c91..de76f888d 100644 --- a/.husky/pre-push +++ b/.husky/pre-push @@ -1 +1,8 @@ -npm run lint && { [ "$PRE_PUSH_RUN_TEST" = "true" ] && npm test; } || exit 0 +#!/bin/sh +set -e + +npm run lint + +if [ "$PRE_PUSH_RUN_TEST" = "true" ]; then + npm test +fi