From 34a5a834065c1858e7d073a69446c4ff264b3067 Mon Sep 17 00:00:00 2001 From: Alexey Lapitsky Date: Wed, 3 Aug 2022 14:32:23 +0200 Subject: [PATCH] chore(entrypoint.sh): better solc detection Exclude dist folder from the grep --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 346d423..77a0ada 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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