Skip to content

Commit

Permalink
docs_version_pragma_check.sh: Set SOLC only for the duration of compi…
Browse files Browse the repository at this point in the history
…leFull

- This is a global variable and would be better to just make it a parameter. At least this makes shellcheck shut up
  • Loading branch information
cameel committed Dec 12, 2020
1 parent dec864d commit 2d99157
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/docs_version_pragma_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,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"
Expand Down

0 comments on commit 2d99157

Please sign in to comment.