about summary refs log tree commit diff stats
path: root/modules/home.legacy/conf
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-02-22 12:23:29 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-02-22 12:23:29 +0100
commitd2fd0007c634e90ce09b46ac4afdbc7ff8f6c803 (patch)
tree9e979ade2b177865f8d042486966b4f68589a412 /modules/home.legacy/conf
parentfix(modules/legacy/conf/firefox/config/prefs/override.js): Never show bookmarks (diff)
downloadnixos-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.nix5
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