Skip to content

Commit 6bdc8e3

Browse files
committed
chore: satisfy super-linter
1 parent d47b73a commit 6bdc8e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/ci_test_etherscan.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ then
110110
exit 255
111111
fi
112112

113-
dir_name=$(ls crytic-export/etherscan-contracts/ | grep 0x9AB6b21cDF116f611110b048987E58894786C244)
114-
cd crytic-export/etherscan-contracts/$dir_name
113+
dir_name=$(find crytic-export/etherscan-contracts/ -type d -name "*0x9AB6b21cDF116f611110b048987E58894786C244*" -print -quit)
114+
cd "$dir_name" || { echo "Failed to change directory"; exit 255; }
115115

116116
if [ ! -f crytic_compile.config.json ]; then
117117
echo "crytic_compile.config.json does not exist"

0 commit comments

Comments
 (0)