In order to save the state of variables exported in a scenario execution, we capture and save the environment variables into a file after each command gets executed. This allows the portal to source the environment variables from that file after the innovation engine exits so that the user has access to the environment variables exported during a scenario run. However, Cloud Shell exports the variable Fabric_NET-0-[Delegated] into the users environment which contains illegal characters for a bash variable name. This PR cleans up the environment variables file when running in Cloud Shell so that there are no errors when sourcing the environment variable file after ie finishes executing.
In order to save the state of variables exported in a scenario execution, we capture and save the environment variables into a file after each command gets executed. This allows the portal to source the environment variables from that file after the innovation engine exits so that the user has access to the environment variables exported during a scenario run. However, Cloud Shell exports the variable
Fabric_NET-0-[Delegated]
into the users environment which contains illegal characters for a bash variable name. This PR cleans up the environment variables file when running in Cloud Shell so that there are no errors when sourcing the environment variable file after ie finishes executing.