From 1bd7c6aba5d5b6a8ee32af24a9cd62f87458eb06 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Fri, 27 Feb 2026 19:41:16 +0100 Subject: [PATCH] fix(husky): avoid echo syntax error under sh --- .husky/pre-push | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.husky/pre-push b/.husky/pre-push index 23df0c8..38c0899 100755 --- a/.husky/pre-push +++ b/.husky/pre-push @@ -37,9 +37,11 @@ do fi git push origin "$TAG" --force --no-verify - echo -e "\n\033[32m✨ VERSIONS SYNCED & PUSHED SUCCESSFULLY ✨\033[0m" - echo -e "\033[33mThe correct commit has been tagged on origin.\033[0m" - echo -e "\033[90m(Info: You will see a 'pre-push hook failed' and 'failed to push' error below. Please completely ignore it. We MUST abort the native git push, otherwise Git would push the pre-sync commit to the tag and break the version history.)\033[0m\n" + echo "" + echo "✨ VERSIONS SYNCED & PUSHED SUCCESSFULLY ✨" + echo "The correct commit has been tagged on origin." + echo "(Info: You will see a 'pre-push hook failed' and 'failed to push' error below. Please completely ignore it. We MUST abort the native git push, otherwise Git would push the pre-sync commit to the tag and break the version history.)" + echo "" # We MUST exit 1, otherwise native Git will push the wrong commit to the tag exit 1