mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-06-26 01:25:22 +02:00
feat: use printf instead of echo
This commit is contained in:
@@ -19,7 +19,7 @@ function safeDockerLoginCommand(registry: string | undefined, user: string | und
|
||||
const escapedRegistry = shEscape(registry)
|
||||
const escapedUser = shEscape(user)
|
||||
const escapedPassword = shEscape(pass)
|
||||
return `echo ${escapedPassword} | docker login ${escapedRegistry} -u ${escapedUser} --password-stdin`;
|
||||
return `printf %s ${escapedPassword} | docker login ${escapedRegistry} -u ${escapedUser} --password-stdin`;
|
||||
}
|
||||
|
||||
export const createRegistry = async (
|
||||
|
||||
Reference in New Issue
Block a user