diff options
Diffstat (limited to 'modules/home.legacy/conf/mail/default.nix')
-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 |