From 57654cc32e7944f631e0d4df496ebf845d1abdac Mon Sep 17 00:00:00 2001 From: Niladri Halder Date: Thu, 7 Dec 2023 00:42:21 +0530 Subject: [PATCH] fix(buildscripts): make verify-src compatible with Macs Signed-off-by: Niladri Halder --- buildscripts/check-diff.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildscripts/check-diff.sh b/buildscripts/check-diff.sh index bf54916..fd4e4e0 100755 --- a/buildscripts/check-diff.sh +++ b/buildscripts/check-diff.sh @@ -21,6 +21,6 @@ set -e TEST_NAME=$1 -if [[ `git diff --shortstat | wc -l` != 0 ]]; then +if [[ `git diff --shortstat | wc -l | tr -d ' '` != 0 ]]; then echo "Some files got changed after $1";printf "\n";git --no-pager diff;printf "\n"; exit 1; fi