fix: create parent directories during sftp deploy
deploy-preland / deploy barbariskatest (push) Skipped
deploy-preland / deploy zoomstage.online (push) Successful in 18s
deploy-preland / deploy zoompixel.online (push) Skipped
deploy-preland / deploy zoompixel.ru (push) Skipped

This commit is contained in:
Panfilov Konstantin committed 2026-10-17 07:58:57 +03:00
1 parent 37ca4ae356
commit 1b28299a42
2 files changed
+30 -4

No files matched your search

+4
View File
@@ -53,6 +53,10 @@ foreach ([
}
}
if (substr_count($workflow, 'while [ -n "$dir" ]; do') < 2) {
$failures[] = 'SFTP-деплой должен создавать все родительские каталоги для новых наборов assets.';
}
if ($failures !== []) {
fwrite(STDERR, "FAILED\n- " . implode("\n- ", $failures) . "\n");
exit(1);