File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 30
30
}
31
31
32
32
// Skip when there are no tables in the database.
33
- if (test ('[[ -z "$(. /vendor/bin/drush sql:query \'SHOW TABLES \')" ]] ' )) {
33
+ if (test ('[[ -z "$({{release_or_current_path}} /vendor/bin/drush sql:query \'SHOW TABLES \')" ]] ' )) {
34
34
writeln ("<fg=yellow;options=bold;>Warning: </><fg=yellow;>Your database is empty! Skipping...</> " );
35
35
return ;
36
36
}
37
37
38
38
$ destination = has ('previous_release ' ) ? '{{previous_release}} ' : '{{release_path}} ' ;
39
39
run ("mkdir -p $ destination/config/backup " );
40
+
40
41
cd ('{{release_or_current_path}} ' );
41
- run (". /vendor/bin/drush -y config:export --destination=$ destination " );
42
+ run ("{{release_or_current_path}} /vendor/bin/drush -y config:export --destination=$ destination " );
42
43
writeln ('Backup saved to ' . $ destination );
43
44
});
44
45
before ('deploy:drush ' , 'drush:config:backup ' );
You can’t perform that action at this time.
0 commit comments