Sourcing Olympe without changing shell

Hello there!

I am willing to use Olympe within a scripted pipeline, i.e., the steps are automated with a bash script. However, when I am sourcing Olympe as explained in the docs, a new shell session is created on top, thus stopping the bash script.

Is there any way to source Olympe in a way that it just adds Olympe to the current bash session?

Thanks in advance!


Yes, just source the products/olympe/linux/env/setenv script instead of the products/olympe/linux/env/shell script. The shell script basically spawn a new shell and source the setenv script into it.

1 Like