unicef / magasin

Cloud native open-source end-to-end data / AI / ML platform
https://unicef.github.io/magasin/
Apache License 2.0
5 stars 2 forks source link

Installer does not work when missing dependencies using curl piping #72

Closed merlos closed 4 months ago

merlos commented 4 months ago

In the installer, when it is run through curl piping and there are dependencies missing (which is almost always as mag is usually not installed), the installation fails when it reaches the point in which it asks the user if he wants to install the dependencies.

The reason for this is that the shell launched with curl piping is not interactive.

Solution: Detect if the shell is interactive, if so => allow the question otherwise automatically install the dependencies.