mirror of
https://github.com/nix-community/home-manager
synced 2024-11-27 05:29:46 +01:00
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 =
|
||||
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