offlineimap: Strip newlines from offlineimap passwordcommand (#1853)
This allows me to use offlineimap with passwordstore. I guess nobody uses a newline in their password? Co-authored-by: Kerstin Humm <kerstin@erictapen.name>
This commit is contained in:
parent
57a7e5e2c5
commit
040ea28e44
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ let
|
||||||
remotePassEval =
|
remotePassEval =
|
||||||
let arglist = concatMapStringsSep "," (x: "'${x}'") passwordCommand;
|
let arglist = concatMapStringsSep "," (x: "'${x}'") passwordCommand;
|
||||||
in optionalAttrs (passwordCommand != null) {
|
in optionalAttrs (passwordCommand != null) {
|
||||||
remotepasseval = ''get_pass("${name}", [${arglist}])'';
|
remotepasseval = ''get_pass("${name}", [${arglist}]).strip("\n")'';
|
||||||
};
|
};
|
||||||
in toIni {
|
in toIni {
|
||||||
"Account ${name}" = {
|
"Account ${name}" = {
|
||||||
|
|
Loading…
Reference in a new issue