diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2018-11-14 13:37:07 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2018-11-14 13:37:07 -0200 |
commit | fc59210df81d92cb557c8ebd00721aba53fc03ef (patch) | |
tree | 934db67cf79452ccfba5afd92506176fdffc139b | |
parent | 0bc3d6b5d3aded05f8e241769470360b8c939f62 (diff) | |
download | scripts-fc59210df81d92cb557c8ebd00721aba53fc03ef.tar.gz scripts-fc59210df81d92cb557c8ebd00721aba53fc03ef.tar.bz2 |
Only run taskwarrior if its available
-rwxr-xr-x | todo | 16 |
1 files changed, 8 insertions, 8 deletions
@@ -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 |