Re-add hashbangs in mail scripts
This commit is contained in:
parent
381f7777ba
commit
5400fd6faa
1 changed files with 4 additions and 0 deletions
|
@ -1,9 +1,13 @@
|
||||||
{ pkgs, lib, ... }:
|
{ pkgs, lib, ... }:
|
||||||
let
|
let
|
||||||
passwordScript = pkgs.writeScript "get_mail_password" ''
|
passwordScript = pkgs.writeScript "get_mail_password" ''
|
||||||
|
#!${pkgs.bash}/bin/bash
|
||||||
|
|
||||||
${pkgs.pass}/bin/pass show "$@" | head -n1 | tr -d "\n"
|
${pkgs.pass}/bin/pass show "$@" | head -n1 | tr -d "\n"
|
||||||
'';
|
'';
|
||||||
notifyScript = name: pkgs.writeScript "notify_${name}_mail" ''
|
notifyScript = name: pkgs.writeScript "notify_${name}_mail" ''
|
||||||
|
#!${pkgs.bash}/bin/bash
|
||||||
|
|
||||||
unseen_count=$(${pkgs.mblaze}/bin/mlist -N ~/mail/*/INBOX | wc -l)
|
unseen_count=$(${pkgs.mblaze}/bin/mlist -N ~/mail/*/INBOX | wc -l)
|
||||||
|
|
||||||
if [ "$unseen_count" = "1" ]
|
if [ "$unseen_count" = "1" ]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue