sebastien / cuisine

Chef-like functionality for Fabric

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`dir_ensure` tries to create the directory even if it exists

jaapz opened this issue · comments

When i try to ensure that a directory exists, cuisine always tries to create it, even if it exists.

If I change the echo OK to echo -n OK (forcing echo to not output a newline) everything works like it should.

Looks like endswith('OK') does not return True when the returned value ends with a newline.

Thanks, done!

@sebastien thanks for the quick fix!

My pleasure :) thanks for letting me know!