From 778030051ca6ade587768bc5691db7105a99e2e1 Mon Sep 17 00:00:00 2001 From: Andrey Platov Date: Sat, 11 Sep 2021 09:40:30 +0200 Subject: [PATCH] check script Signed-off-by: Andrey Platov --- common/scripts/each.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/scripts/each.sh b/common/scripts/each.sh index 4a54c53017..9b4e7ae493 100755 --- a/common/scripts/each.sh +++ b/common/scripts/each.sh @@ -24,8 +24,9 @@ roots=$(node $sourceDir/install-run-rush.js list -f --json | grep "fullPath" | c for i in $roots do pushd ${i} - echo "Checking ${i} $1..." - if [ $(node ${runscript} | grep $1: | wc -l) > 0 ]; then + checkScript=$(node ${runscript} | grep $1: | wc -l) + echo "Check script ${i} ${checkScript}..." + if [ $checkScript -gt 0 ]; then node ${runScript} $@ retVal=$? if [ $retVal -ne 0 ]; then