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

[MacOS] Install script failed due to usage of long parameters #1001

Closed
curzolapierre opened this issue Sep 6, 2023 · 1 comment · Fixed by #1002
Closed

[MacOS] Install script failed due to usage of long parameters #1001

curzolapierre opened this issue Sep 6, 2023 · 1 comment · Fixed by #1002
Assignees
Labels

Comments

@curzolapierre
Copy link
Member

curzolapierre commented Sep 6, 2023

https://app.intercom.com/a/inbox/w4oogu7s/inbox/shared/all/conversation/12375700189899

On MacOS the current install script fails on tr and cut command due to long parameters, e.g.

$ curl -O https://cli-dl.scalingo.com/install && bash install
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 5091 0 5091 0 0 68495 0 --:--:-- --:--:-- --:--:-- 71704
tr: illegal option -- -
usage: tr [-Ccsu] string1 string2
tr [-Ccu] -d string1
tr [-Ccu] -s string1
tr [-Ccu] -ds string1 string2
! Fail to get the version of the CLI
! You probably have an old version of curl. Please check your curl version and update accordingly.

Or

-----> Downloading Scalingo client... DONE
-----> Verifying the checksum... install: line 135: sha256sum: command not found
cut: illegal option -- -
usage: cut -b list [-n] [file ...]
cut -c list [file ...]
cut -f list [-s] [-w | -d delim] [file ...]
install: line 136: wget: command not found
cut: illegal option -- -
usage: cut -b list [-n] [file ...]
cut -c list [file ...]
cut -f list [-s] [-w | -d delim] [file ...]
VALID
-----> Extracting... DONE
-----> Install Scalingo client to /opt/homebrew/bin
sudo required...
/opt/homebrew/bin does not exist, creating...
-----> Installation completed, the command 'scalingo' is available.
install: line 196: scalingo: command not found
-----> Here's what's new in this version:

Note that the installation path is: /opt/homebrew/bin and seems not in the PATH by default.

Regression has been added in #988 : 5efcc9f

@EtienneM
Copy link
Member

EtienneM commented Sep 6, 2023

Indeed, apparently MacOS does not have the long option available: https://ss64.com/osx/cut.html 😲 🤦

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

Successfully merging a pull request may close this issue.

2 participants