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
2021-03-04 16:57:25 +01:00
parent e8a70e8e4b
commit 87f9eba1cf
+1 -2
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"