fix pass: Trim leading & trailing whitespace
This commit is contained in:
parent
0147c3e13e
commit
0b992c6156
1 changed files with 4 additions and 1 deletions
|
@ -8,6 +8,7 @@ import (
|
||||||
"os/exec"
|
"os/exec"
|
||||||
|
|
||||||
"github.com/polydawn/meep"
|
"github.com/polydawn/meep"
|
||||||
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
type PassError struct {
|
type PassError struct {
|
||||||
|
@ -28,5 +29,7 @@ func GetFromPass(key string) (string, error) {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
return string(output), nil
|
trimmed := strings.TrimSpace(string(output))
|
||||||
|
|
||||||
|
return trimmed, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue