mirror of
https://github.com/docker/docker-credential-helpers.git
synced 2026-06-13 16:01:28 +05:30
Merge pull request #108 from euank/pass-trimtrim-pass
pass: trim pass show output
This commit is contained in:
+2
-1
@@ -58,7 +58,8 @@ func runPass(stdin string, args ...string) (string, error) {
|
|||||||
return "", fmt.Errorf("%s: %s", err, stderr.String())
|
return "", fmt.Errorf("%s: %s", err, stderr.String())
|
||||||
}
|
}
|
||||||
|
|
||||||
return stdout.String(), nil
|
// trim newlines; pass v1.7.1+ includes a newline at the end of `show` output
|
||||||
|
return strings.TrimRight(stdout.String(), "\n\r"), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Pass handles secrets using Linux secret-service as a store.
|
// Pass handles secrets using Linux secret-service as a store.
|
||||||
|
|||||||
Reference in New Issue
Block a user