Fix tests

This commit is contained in:
Henrique Bremenkanp 2016-11-16 22:51:12 -02:00
parent 18b9634e00
commit c4eff86e53

View File

@ -345,8 +345,11 @@ task('deploy:shared', function () {
$sharedPath = "{{deploy_path}}/shared";
foreach (get('shared_dirs') as $dir) {
// Copy shared dir if it does not exist.
run("if [ -d $(echo {{release_path}}/$dir) ]; then cp -rn {{release_path}}/$dir $sharedPath/$dir; fi");
// Create shared dir if it does not exist.
run("mkdir -p $sharedPath/$dir");
// Copy shared dir files if they does not exist.
run("if [ -d $(echo {{release_path}}/$dir) ]; then cp -rn {{release_path}}/$dir $sharedPath; fi");
// Remove from source.
run("if [ -d $(echo {{release_path}}/$dir) ]; then rm -rf {{release_path}}/$dir; fi");