From fe8128fa9bb2d232fceb3b3df856728bcb04a55f Mon Sep 17 00:00:00 2001 From: Nikola Matic Date: Tue, 5 Sep 2023 15:02:38 +0200 Subject: [PATCH] Fix type inference shellcheck failure --- scripts/ASTImportTest.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/ASTImportTest.sh b/scripts/ASTImportTest.sh index 53bdaa3d5..74ec8ef8a 100755 --- a/scripts/ASTImportTest.sh +++ b/scripts/ASTImportTest.sh @@ -214,10 +214,8 @@ EXCLUDE_FILES=( boost_filesystem_bug.sol pragma_experimental_solidity.sol ) -IMPORT_TEST_FILES=$(find "${TEST_DIRS[@]}" -name "*.sol" -and $(printf "! -name %s " ${EXCLUDE_FILES[@]}) -not -path "*/experimental/*") - -echo $IMPORT_TEST_FILES -exit +EXCLUDE_FILES_JOINED=$(printf "! -name %s " "${EXCLUDE_FILES[@]}") +IMPORT_TEST_FILES=$(find "${TEST_DIRS[@]}" -name "*.sol" -and $EXCLUDE_FILES_JOINED -not -path "*/experimental/*") NSOURCES="$(echo "${IMPORT_TEST_FILES}" | wc -l)" echo "Looking at ${NSOURCES} .sol files..."