diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-02-22 12:23:29 +0100 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-02-22 12:23:29 +0100 |
commit | d2fd0007c634e90ce09b46ac4afdbc7ff8f6c803 (patch) | |
tree | 9e979ade2b177865f8d042486966b4f68589a412 | |
parent | fix(modules/legacy/conf/firefox/config/prefs/override.js): Never show bookmarks (diff) | |
download | nixos-config-d2fd0007c634e90ce09b46ac4afdbc7ff8f6c803.zip |
fix(modules/legacy/conf/mail): Actually add the password, when triggering the git helper
Diffstat (limited to '')
-rw-r--r-- | modules/home.legacy/conf/mail/default.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/home.legacy/conf/mail/default.nix b/modules/home.legacy/conf/mail/default.nix index 9c2554ee..758d2c80 100644 --- a/modules/home.legacy/conf/mail/default.nix +++ b/modules/home.legacy/conf/mail/default.nix @@ -20,8 +20,9 @@ [ "$1" = "get" ] || { exit 1 } - if cat | grep "username=${userName}" -q; then - ${passwordCommand} + output="$(cat)" + if echo "$output" | grep "username=${userName}" -q; then + printf "%s\npassword=%s\n\n" "$output" "$(${passwordCommand})" else # Not our business. exit 1 |