git-ecosystem / git-ecosystem/git-credential-manager

curl install gives error on ubuntu

Open
#1,597 5 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
9.3k
Forks
2.9k
Avg merge
7d 1h
Merged PRs (30d)
14

Description

Hi, I tried folowing the install instructions in the readme: https://github.com/git-ecosystem/git-credential-manager/blob/release/docs/install.md#install-from-source-helper-script
I installed curl.
Then tried: $ curl -L https://aka.ms/gcm/linux-install-source.sh | sh
I get the folowing output:

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
This script will download, compile, and install Git Credential Manager to:

/usr/local/bin

Git Credential Manager is licensed under the MIT License: https://aka.ms/gcm/license
100 7552 100 7552 0 0 38867 0 --:--:-- --:--:-- --:--:-- 38867
Please answer yes or no.
Please answer yes or no.
Please answer yes or no.
Please answer yes or no.
Please answer yes or no.
Please answer yes or no.
Please answer yes or no.
Please answer yes or no.
Please answer yes or no.
Please answer yes or no.
sh: 170: Syntax error: "fi" unexpected (expecting "then")

My system: Ubuntu 22.04.4 LTS
GNOME Version: 42.9

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the install-from-source helper-script section in docs/install.md and reproduce the command on Ubuntu 22.04.4. Trace the downloaded script's prompt and shell parsing around the reported line 170 error. Done means the documented curl command completes successfully without repeated prompts or a syntax error.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell, ubuntu
Domain
cli, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.