Article 58TR7 How to invoke a script downloaded with curl and pass invocation options?

How to invoke a script downloaded with curl and pass invocation options?

by
framp
from LinuxQuestions.org on (#58TR7)
I have no idea which forum would be appropriate for my question so I just picked this one :-)

Right now I use following code to download and call a small bash script from my website which initiates a more complex installation

"curl https://<mydomain>/install | sudo bash"

which works fine. Now I want to pass installation options the the install script. I tried

"curl https://<mydomain>/install -o | sudo bash"

which fails.

As a workaround I can use

"curl https://<mydomain>/install -O ./install && sudo ./install -o"

but I frankly would like to use the first version just by adding option -o somewhere :)

Is there any way to get this done or do I have to use the workaround?latest?d=yIl2AUoC8zA latest?i=D51xQpfeFUg:Qg9JmomJZfo:F7zBnMy latest?i=D51xQpfeFUg:Qg9JmomJZfo:V_sGLiP latest?d=qj6IDK7rITs latest?i=D51xQpfeFUg:Qg9JmomJZfo:gIN9vFwD51xQpfeFUg
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments