morse-simulator / morse

The Modular OpenRobots Simulation Engine
http://morse-simulator.github.io/
Other
357 stars 156 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.