iamdork / compose

Command line replacement for docker-compose, adding dork magics.
MIT License
2 stars 2 forks source link

Directory relationship check should actually check directories #22

Closed ohthehugemanatee closed 7 years ago

ohthehugemanatee commented 7 years ago

If your primary directory and the context directory are similar, dork can get confused in autobuild. My repo root is ~/Sites/mysite , and the dork-compose directory is ~/Sites/mysite-dork .

Added a helper function for is_subdir, which uses os to make sure directory a is an actual subdirectory of directory b.