From 6bdc8e3d470c1386135e7f21886cf26e19778f7d Mon Sep 17 00:00:00 2001 From: shortdoom Date: Thu, 1 Feb 2024 23:12:25 +0100 Subject: [PATCH] chore: satisfy super-linter --- scripts/ci_test_etherscan.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ci_test_etherscan.sh b/scripts/ci_test_etherscan.sh index 5da4019..d4ddc5a 100755 --- a/scripts/ci_test_etherscan.sh +++ b/scripts/ci_test_etherscan.sh @@ -110,8 +110,8 @@ then exit 255 fi -dir_name=$(ls crytic-export/etherscan-contracts/ | grep 0x9AB6b21cDF116f611110b048987E58894786C244) -cd crytic-export/etherscan-contracts/$dir_name +dir_name=$(find crytic-export/etherscan-contracts/ -type d -name "*0x9AB6b21cDF116f611110b048987E58894786C244*" -print -quit) +cd "$dir_name" || { echo "Failed to change directory"; exit 255; } if [ ! -f crytic_compile.config.json ]; then echo "crytic_compile.config.json does not exist"