diff options
author | Matthew Lemon <y@yulqen.org> | 2023-10-23 20:36:42 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2023-10-23 20:36:47 +0100 |
commit | 2c41974313f331e0ba69405b82fd462171d2c1ea (patch) | |
tree | e0826bdf33e1943827bab253f30f8c4c8d077336 | |
parent | 988bf6de1ca001779c997e22b5652e93db5bf2f8 (diff) |
changes to file
-rwxr-xr-x | aerc2task.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/aerc2task.pl b/aerc2task.pl index 4c907ef..76fbe2f 100755 --- a/aerc2task.pl +++ b/aerc2task.pl @@ -1,4 +1,4 @@ -#!/bin/env perl +#!/usr/bin/env perl # this script is used to pipe an email from aerc using pipe -m ./aerc2task.pl to taskwarrior @@ -11,7 +11,7 @@ foreach my $line (<STDIN>) { $task =~ s/TASK//g; $task =~ s/WATCH//g; print "So task is: $task\n"; - `task add $task` + system("task add $task") == 0 or die "Calling taskwarrrior failed: $?"; } } |