Skip to content

Commit eea561a

Browse files
Kaniska244Copilot
andauthored
[github-cli] - Fix excessive wget download output in GitHub CLI feature (#1478)
* Initial plan * Fix excessive wget download output in GitHub CLI feature Co-authored-by: Kaniska244 <186041440+Kaniska244@users.noreply.github.com> * Version bump. --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Kaniska244 <186041440+Kaniska244@users.noreply.github.com>
1 parent 8affef0 commit eea561a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/github-cli/devcontainer-feature.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"id": "github-cli",
3-
"version": "1.0.14",
3+
"version": "1.0.15",
44
"name": "GitHub CLI",
55
"documentationURL": "https://github.com/devcontainers/features/tree/main/src/github-cli",
66
"description": "Installs the GitHub CLI. Auto-detects latest version and installs needed dependencies.",

src/github-cli/install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,14 +195,14 @@ install_deb_using_github() {
195195

196196
mkdir -p /tmp/ghcli
197197
pushd /tmp/ghcli
198-
wget https://github.com/cli/cli/releases/download/v${CLI_VERSION}/${cli_filename}
198+
wget -q --show-progress --progress=dot:giga https://github.com/cli/cli/releases/download/v${CLI_VERSION}/${cli_filename}
199199
exit_code=$?
200200
set -e
201201
if [ "$exit_code" != "0" ]; then
202202
# Handle situation where git tags are ahead of what was is available to actually download
203203
echo "(!) github-cli version ${CLI_VERSION} failed to download. Attempting to fall back one version to retry..."
204204
find_prev_version_from_git_tags CLI_VERSION https://github.com/cli/cli
205-
wget https://github.com/cli/cli/releases/download/v${CLI_VERSION}/${cli_filename}
205+
wget -q --show-progress --progress=dot:giga https://github.com/cli/cli/releases/download/v${CLI_VERSION}/${cli_filename}
206206
fi
207207

208208
dpkg -i /tmp/ghcli/${cli_filename}

0 commit comments

Comments
 (0)