mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-03 10:42:16 +00:00
refactor: reuse safeDockerLoginCommand from registry.ts instead of duplicating shEscape
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user