On 11.06.2014, at 16:28, Esteban Lorenzano <[email protected]> wrote:
> unless you are suggesting that he can do something like > > curl get.pharo.org > myScript.sh > bash myScript.sh -v > > that can work Ok, you win :) There doesn’t seem to be an easy way to do this appart from what you’ve done above (yes, there are environment variables etc…). @(other)Esteban How important is this to you? You can always pipe the script through a ‘sed’ filter and remove the ‘--silent’ option. > > On 11 Jun 2014, at 11:27, Esteban Lorenzano <[email protected]> wrote: > >> does not work. >> bash will execute the script (without any option). >> What I ask is: how do you tell bash that he needs to transfer a flag “-v” to >> the downloaded script? >> >> Esteban >> >> On 11 Jun 2014, at 11:07, Max Leske <[email protected]> wrote: >> >>> >>> On 11.06.2014, at 15:59, Esteban Lorenzano <[email protected]> wrote: >>> >>>> >>>> On 11 Jun 2014, at 10:54, Max Leske <[email protected]> wrote: >>>> >>>>> >>>>> On 11.06.2014, at 15:45, Esteban Lorenzano <[email protected]> wrote: >>>>> >>>>>> >>>>>> On 11 Jun 2014, at 10:41, Esteban A. Maringolo <[email protected]> >>>>>> wrote: >>>>>> >>>>>>> Can the zeroconf download of the image and/or vm display a progress? >>>>>>> >>>>>>> It is... remove the --silent and --quiet arguments from curl and wget >>>>>>> respectively :) >>>>>>> >>>>>>> Thank you! >>>>>> >>>>>> mmm… I do not think so, since zeroconf scripts are intended to automated >>>>>> scenarios (like jenkins builds, etc.) >>>>> >>>>> We could default to silent and give the user the option to turn off the >>>>> silence with a -v flag… >>>> >>>> how? >>>> (thinking on "curl get.pharo.org | bash” usage) >>> >>> Well, the first ‘curl’ simply gets the script and feeds it to bash. After >>> that, all the statements from the script work as if executed directly from >>> the shell. Then, in the script, you do something like: >>> >>> if [ <NOT check option> ]; then >>> SILENT= "—silent" >>> else >>> SILENT=“” >>> fi >>> >>> >>>> >>>>> >>>>>> >>>>>>> >>>>>>> Esteban A. Maringolo >
