Commit 5a83a851 authored by Samuel Sirois's avatar Samuel Sirois
Browse files

Fix check on folder existance in container

We cannot test on host machine for a path that only exists in
the container and expect to have proper behavior.
parent e697af09
......@@ -76,9 +76,8 @@ def aliases():
drush_aliases = env.site_drush_aliases
workspace = env.workspace
if not os.path.exists(drush_aliases):
dk_run(['php'], user='root',
cmd='mkdir {}'.format(drush_aliases))
dk_run(['php'], user='root',
cmd='if [ ! -e {} ]; then mkdir {}; fi;'.format(drush_aliases, drush_aliases))
if os.path.exists('{}/aliases.drushrc.php'.format(drush_aliases)):
dk_run(['php'], user='root',
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment