Scalingo/cli

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

curzolapierre opened this issue · 1 comments

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

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