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
This commit is contained in:
Kamil Śliwak 2020-12-12 03:06:27 +01:00
parent e8a70e8e4b
commit 87f9eba1cf

View File

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