Skip to content

Commit

Permalink
Merge pull request crytic#26 from aurora-is-near/main
Browse files Browse the repository at this point in the history
chore(entrypoint.sh): better solc detection
  • Loading branch information
elopez authored Sep 5, 2022
2 parents 8809f52 + 34a5a83 commit 481d27b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ install_solc()
SOLCVER="$(grep --no-filename '^pragma solidity' "$TARGET" | cut -d' ' -f3)"
elif [[ -d "$TARGET" ]]; then
pushd "$TARGET" >/dev/null
SOLCVER="$(grep --no-filename '^pragma solidity' -r --include \*.sol --exclude-dir node_modules | \
SOLCVER="$(grep --no-filename '^pragma solidity' -r --include \*.sol --exclude-dir node_modules --exclude-dir dist | \
cut -d' ' -f3 | sort | uniq -c | sort -n | tail -1 | tr -s ' ' | cut -d' ' -f3)"
popd >/dev/null
else
Expand Down

0 comments on commit 481d27b

Please sign in to comment.