Skip to content

Commit

Permalink
chore(entrypoint.sh): better solc detection
Browse files Browse the repository at this point in the history
Exclude dist folder from the grep
  • Loading branch information
vzctl authored Aug 3, 2022
1 parent bc62b8c commit 34a5a83
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 @@ -34,7 +34,7 @@ install_solc()
SOLCVER="$(grep --no-filename '^pragma solidity' "$TARGET" | cut -d' ' -f3)"
else
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
fi
Expand Down

0 comments on commit 34a5a83

Please sign in to comment.