Skip to content

Commit

Permalink
mailcheck: fix problem when calling check_cmd with a variable in profile
Browse files Browse the repository at this point in the history
See issue haqistan#1 on original project.

My $MBLAZE is set to /Users/x/.config/mail

In my mblaze profile, I customized MailCheckCommand to be:
MailCheckCommand: fdm -f $MBLAZE/fdmrc -q fetch

My small fix permits this otherwise, mailcheck aborts.
  • Loading branch information
xmailla committed Dec 30, 2024
1 parent 8c5c616 commit 517694b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mailcheck
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ wakeup () {

mailcheck () {
echo $(ts) checking ...
${check_cmd}
$(echo $check_cmd | envsubst)
if [ -n "${index_cmd}" ]; then
echo $(ts) indexing ...
${index_cmd}
Expand Down

0 comments on commit 517694b

Please sign in to comment.