Skip to content

Commit

Permalink
credential helpers fix
Browse files Browse the repository at this point in the history
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
  • Loading branch information
prabhu committed Nov 20, 2023
1 parent 79d80de commit 89540a8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docker.js
Original file line number Diff line number Diff line change
Expand Up @@ -1087,10 +1087,11 @@ export const getCredsFromHelper = (exeSuffix, serverAddress) => {
if (isWin) {
credHelperExe = credHelperExe + ".exe";
}
const result = spawnSync(credHelperExe, ["get", serverAddress], {
const result = spawnSync(credHelperExe, ["get"], {
input: serverAddress,
encoding: "utf-8"
});
console.log("Invoking", credHelperExe, "get", serverAddress);
console.log("Invoking", credHelperExe, "get");
if (result.status !== 0 || result.error) {
console.log(result.stdout, result.stderr);
} else if (result.stdout) {
Expand Down

0 comments on commit 89540a8

Please sign in to comment.