aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2018-11-14 13:37:07 -0200
committerSilvio Rhatto <rhatto@riseup.net>2018-11-14 13:37:07 -0200
commitfc59210df81d92cb557c8ebd00721aba53fc03ef (patch)
tree934db67cf79452ccfba5afd92506176fdffc139b
parent0bc3d6b5d3aded05f8e241769470360b8c939f62 (diff)
downloadscripts-fc59210df81d92cb557c8ebd00721aba53fc03ef.tar.gz
scripts-fc59210df81d92cb557c8ebd00721aba53fc03ef.tar.bz2
Only run taskwarrior if its available
-rwxr-xr-xtodo16
1 files changed, 8 insertions, 8 deletions
diff --git a/todo b/todo
index 5cf79d1..f28dd8c 100755
--- a/todo
+++ b/todo
@@ -46,16 +46,16 @@ function todo_list {
task list 2> /dev/null
echo ""
fi
- fi
- # Taskwarrior data from projects
- if [ ! -z "$status" ]; then
- taskstatus="+$status"
- SILENT="true"
- fi
+ # Taskwarrior data from projects
+ if [ ! -z "$status" ]; then
+ taskstatus="+$status"
+ SILENT="true"
+ fi
- SILENT=$SILENT tasks $taskstatus list
- echo ""
+ SILENT=$SILENT tasks $taskstatus list
+ echo ""
+ fi
# User's Timewarrior
if which timew &> /dev/null; then