mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08: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:
@@ -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}" = {
|
||||
|
||||
Reference in New Issue
Block a user