Skip to content

Commit 47177c9

Browse files
Update editorconfig-check.yml
Signed-off-by: LUIZ HAMILTON ROBERTO DA SILVA <[email protected]>
1 parent a698657 commit 47177c9

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/editorconfig-check.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,11 @@ jobs:
9898
wget -q https://github.com/editorconfig-checker/editorconfig-checker/releases/latest/download/ec-linux-amd64.tar.gz
9999
mkdir ec-checker
100100
tar -xzf ec-linux-amd64.tar.gz -C ec-checker
101-
chmod +x ec-checker/ec || chmod +x ec-checker/ec-linux-amd64 || true
102101
103-
if [ -f ec-checker/ec ]; then
104-
sudo mv ec-checker/ec /usr/local/bin/ec
105-
elif [ -f ec-checker/ec-linux-amd64 ]; then
106-
sudo mv ec-checker/ec-linux-amd64 /usr/local/bin/ec
102+
BIN=$(find ec-checker -type f -executable -name "ec*" | head -n 1)
103+
if [ -n "$BIN" ]; then
104+
chmod +x "$BIN"
105+
sudo mv "$BIN" /usr/local/bin/ec
107106
else
108107
echo "❌ Error: ec binary not found after extraction"
109108
exit 1

0 commit comments

Comments
 (0)