refactor: reuse safeDockerLoginCommand from registry.ts instead of duplicating shEscape

This commit is contained in:
lear
2026-03-04 12:45:57 +03:00
parent 7185047eb7
commit d2fabc998d
2 changed files with 7 additions and 11 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ function shEscape(s: string | undefined): string {
return `'${s.replace(/'/g, `'\\''`)}'`;
}
function safeDockerLoginCommand(
export function safeDockerLoginCommand(
registry: string | undefined,
user: string | undefined,
pass: string | undefined,