morse-simulator / morse

The Modular OpenRobots Simulation Engine
http://morse-simulator.github.io/
Other
351 stars 155 forks source link

[src]Remove the trailing slash of the envi. name when using morse run #754

Closed nicolaje closed 7 years ago

nicolaje commented 7 years ago

When the environment to run is in $PWD, bash autocompletion causes the environment name to end with a trailing slash:

morse run the_env/

which throws an error:

* Cannot find a MORSE environment or simulation scene matching <the_env/>!

so simply detect it and remove it.