fix: make provider upgrader shell portable

This commit is contained in:
Lyon
2026-05-05 11:12:04 +08:00
parent 5a62af6260
commit e315b5df73
+1 -1
View File
@@ -862,7 +862,7 @@ function upgradePlan(taskId: string): Record<string, JsonValue> {
config.upgradeService,
];
const updaterName = `unidesk-provider-upgrader-${safeDockerName(taskId)}`;
const script = `set -euo pipefail; sleep 2; cd ${shellQuote(workspace)}; ${composeCommand.map(shellQuote).join(" ")}`;
const script = `set -eu; sleep 2; cd ${shellQuote(workspace)}; ${composeCommand.map(shellQuote).join(" ")}`;
const dockerRunCommand = [
"docker",
"run",