git-ecosystem / git-credential-manager

Secure, cross-platform Git credential storage with authentication to GitHub, Azure Repos, and other popular Git hosting services.
Other
5.91k stars 1.6k forks source link

curl install gives error on ubuntu #1597

Open TOliverKocsis opened 2 months ago

TOliverKocsis commented 2 months ago

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 commented 1 month ago

Same issue here

NoahBardwell commented 1 month ago

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

mjcheetham commented 2 weeks ago

Is this still an issue after #1469 was committed?