From 2c41974313f331e0ba69405b82fd462171d2c1ea Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Mon, 23 Oct 2023 20:36:42 +0100 Subject: changes to file --- aerc2task.pl | 4 ++-- 1 file 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 () { $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: $?"; } } -- cgit v1.2.3