check script fixed

Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
Andrey Platov 2021-09-11 09:51:07 +02:00
parent 8ab1bf9b5f
commit 20b35eb2ae
No known key found for this signature in database
GPG Key ID: C8787EFEB4B64AF0

View File

@ -24,9 +24,7 @@ roots=$(node $sourceDir/install-run-rush.js list -f --json | grep "fullPath" | c
for i in $roots
do
pushd ${i}
node ${runscript} -h
checkScript=$(node ${runscript} | grep $1: | wc -l)
echo "Check script ${i} ${checkScript}..."
checkScript=$(node ${runScript} | grep $1: | wc -l)
if [ $checkScript -gt 0 ]; then
node ${runScript} $@
retVal=$?