check script

Signed-off-by: Andrey Platov <andrey@hardcoreeng.com>
This commit is contained in:
Andrey Platov 2021-09-11 09:40:30 +02:00
parent 64992ec93e
commit 778030051c
No known key found for this signature in database
GPG Key ID: C8787EFEB4B64AF0

View File

@ -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