From fc2badc92d8106ed6e6e12b979bd16ad275ca726 Mon Sep 17 00:00:00 2001 From: Patrick Ellis Date: Fri, 18 Jun 2021 13:47:02 -0400 Subject: [PATCH] f --- .github/workflows/check_dist.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check_dist.sh b/.github/workflows/check_dist.sh index f1ddb85a..5febd77c 100755 --- a/.github/workflows/check_dist.sh +++ b/.github/workflows/check_dist.sh @@ -1,7 +1,9 @@ #! /usr/bin/env bash -if [[ "$(git diff --exit-code -- dist/index.js | tee /dev/tty)" ]]; then - echo -e "‼️ Changes detected to dist/index.js! \n\tPlease run \`npm run build' and commit the result." >&2; +dist_index_diff=$(git diff --exit-code -- dist/index.js) + +if [[ "$dist_index_diff" ]]; then + echo -e "$dist_index_diff\n‼️ Changes detected to dist/index.js! \n\tPlease run \`npm run build' and commit the result." >&2; exit 1; fi