git-credential-manager icon indicating copy to clipboard operation
git-credential-manager copied to clipboard

curl install gives error on ubuntu

Open TOliverKocsis opened this issue 1 year ago • 5 comments

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

TOliverKocsis avatar Apr 24 '24 19:04 TOliverKocsis

Same issue here

amasciotta avatar May 03 '24 15:05 amasciotta

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

NoahBardwell avatar May 08 '24 15:05 NoahBardwell

Is this still an issue after #1469 was committed?

mjcheetham avatar Jun 05 '24 18:06 mjcheetham