Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

curl install gives error on ubuntu #1597

Open
TOliverKocsis opened this issue Apr 24, 2024 · 5 comments
Open

curl install gives error on ubuntu #1597

TOliverKocsis opened this issue Apr 24, 2024 · 5 comments

Comments

@TOliverKocsis
Copy link

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

@amasciotta
Copy link

Same issue here

@NoahBardwell
Copy link

NoahBardwell commented May 8, 2024

same issue here
EDIT:
I got it to work by sending the script to a file, give that execute permissions, then executing it.

@mjcheetham
Copy link
Collaborator

Is this still an issue after #1469 was committed?

@paulgmiller
Copy link

Still a problem in november

curl -L https://aka.ms/gcm/linux-install-source.sh | sh
git-credential-manager configure
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 7552 100 7552 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
0 0 7757 0 --:--:-- --:--:-- --:--:-- 7757
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")

git-credential-manager: command not found

@dscho
Copy link
Collaborator

dscho commented Oct 18, 2024

@paulgmiller did you mean October? In any case, could you run this with sh -x instead of sh and see whether that points out a specific problem in https://github.com/git-ecosystem/git-credential-manager/blob/main/src/linux/Packaging.Linux/install-from-source.sh? (I looked, and there does not seem to exist any fi on line 170 of that file.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants
@dscho @paulgmiller @mjcheetham @amasciotta @TOliverKocsis @NoahBardwell and others