From 87f9eba1cfe59049fa5b8d758f141e6ff676fcfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20=C5=9Aliwak?= Date: Sat, 12 Dec 2020 03:06:27 +0100 Subject: [PATCH] docs_version_pragma_check.sh: Set SOLC only for the duration of compileFull - This is a global variable and would be better to just make it a parameter. At least this makes shellcheck shut up --- scripts/docs_version_pragma_check.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/docs_version_pragma_check.sh b/scripts/docs_version_pragma_check.sh index 386f5e20d..22b3ddb87 100755 --- a/scripts/docs_version_pragma_check.sh +++ b/scripts/docs_version_pragma_check.sh @@ -188,8 +188,7 @@ SOLTMPDIR=$(mktemp -d) ln -sf "$solc_bin" "solc" chmod a+x solc - SOLC="$SOLTMPDIR/solc" - compileFull "${opts[@]}" "$SOLTMPDIR/$f" + SOLC="$SOLTMPDIR/solc" compileFull "${opts[@]}" "$SOLTMPDIR/$f" done ) rm -rf "$SOLTMPDIR"