mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-26 05:38:46 +00: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 escapedRegistry = shEscape(registry)
|
||||||
const escapedUser = shEscape(user)
|
const escapedUser = shEscape(user)
|
||||||
const escapedPassword = shEscape(pass)
|
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 (
|
export const createRegistry = async (
|
||||||
|
|||||||
Reference in New Issue
Block a user