Skip to content

Commit 8ce8c5d

Browse files
committed
Avoid printing when binary is cached in script
1 parent acb3432 commit 8ce8c5d

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

codacy-cli.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@ download_cli() {
4949

5050
download "$url" "$bin_folder"
5151
tar xzfv "${bin_folder}/${remote_file}" -C "${bin_folder}"
52-
else
53-
echo "$i" "Codacy cli v2 $binary_name already in cache"
5452
fi
5553
}
5654

@@ -68,7 +66,6 @@ fi
6866
# if no version is specified, we fetch the latest
6967
if [ -z "$CODACY_CLI_V2_VERSION" ]; then
7068
CODACY_CLI_V2_VERSION="$(curl -Lq "https://api.github.com/repos/codacy/codacy-cli-v2/releases/latest" 2>/dev/null | grep -m 1 tag_name | cut -d'"' -f4)"
71-
echo "Fetching latest version: ${CODACY_CLI_V2_VERSION}"
7269
fi
7370

7471
# Folder containing the binary

0 commit comments

Comments
 (0)