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
|
@ -65,7 +65,7 @@ let
|
|||
remotePassEval =
|
||||
let arglist = concatMapStringsSep "," (x: "'${x}'") passwordCommand;
|
||||
in optionalAttrs (passwordCommand != null) {
|
||||
remotepasseval = ''get_pass("${name}", [${arglist}])'';
|
||||
remotepasseval = ''get_pass("${name}", [${arglist}]).strip("\n")'';
|
||||
};
|
||||
in toIni {
|
||||
"Account ${name}" = {
|
||||
|
|
Loading…
Reference in a new issue