Re-add hashbangs in mail scripts

This commit is contained in:
Charlotte Van Petegem 2020-10-11 14:16:25 +02:00
parent 381f7777ba
commit 5400fd6faa
No known key found for this signature in database
GPG key ID: 019E764B7184435A

View file

@ -1,9 +1,13 @@
{ pkgs, lib, ... }:
let
passwordScript = pkgs.writeScript "get_mail_password" ''
#!${pkgs.bash}/bin/bash
${pkgs.pass}/bin/pass show "$@" | head -n1 | tr -d "\n"
'';
notifyScript = name: pkgs.writeScript "notify_${name}_mail" ''
#!${pkgs.bash}/bin/bash
unseen_count=$(${pkgs.mblaze}/bin/mlist -N ~/mail/*/INBOX | wc -l)
if [ "$unseen_count" = "1" ]