IBM-Cloud / ibm-cloud-developer-tools

Installation scripts for new IBM Cloud Developer CLI Plugin and it's dependencies.
Apache License 2.0
131 stars 147 forks source link

`idt-installer` sometimes fails with pipe to bash on this installation step #166

Closed sdake closed 4 years ago

sdake commented 4 years ago

Summary idt-installer sometimes fails with pipe to bash on this installation step:

https://cloud.ibm.com/docs/cli?topic=cloud-cli-getting-started#step1-install-idt

Steps to reproduce (include tooling version, platform, etc)

  1. run idt-installer with a downrev version or of IBM's IKS CLI.

Operating System Specify: (MacOS, Linux, Windows) MacOS, Linux

Supporting details (Logs, stack traces, images, etc. Wrap in <detail> ... </detail> tags as appropriate)

[main] --==[ IBM Cloud Developer Tools for Linux/MacOS - Installer, v1.2.3 ]==--
[install] Starting Installation...
...
Checking for updates...
New version 1.1.0 is available.
Release notes: https://github.com/IBM-Cloud/ibm-cloud-cli-release/releases/tag/v1.1.0
Do you want to update now? [Y/n] > 
FAILED
Could not read from input: EOF

As you can see, input is expected, which breaks the documented workflow.

The workflow works if I run without the pipe to bash after using curl -LO URL: and type the Y command e.g.:

Stevens-MacBook-Pro:~ sdake$ ./idt-installer
Password:
[main] --==[ IBM Cloud Developer Tools for Linux/MacOS - Installer, v1.2.3 ]==--
[install] Starting Installation...
...
Checking for updates...
New version 1.1.0 is available.
Release notes: https://github.com/IBM-Cloud/ibm-cloud-cli-release/releases/tag/v1.1.0
Do you want to update now? [Y/n] > y
Installing version '1.1.0'...

Development "done" checklist

sdake commented 4 years ago

this appears fixed with later versions.