From e90bcb588e97118af0cdba23fae562fb0efbf294 Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Wed, 12 Sep 2018 13:26:08 +0200 Subject: [PATCH] Improve bogus task tags detection Signed-off-by: Clifford Wolf --- sbysrc/sby.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbysrc/sby.py b/sbysrc/sby.py index efc8b1a..435119d 100644 --- a/sbysrc/sby.py +++ b/sbysrc/sby.py @@ -164,7 +164,7 @@ def read_sbyconfig(sbydata, taskname): if len(task_tags_all) and not found_task_tag: tokens = line.split() - if len(tokens) > 0 and tokens[0].endswith(":"): + if len(tokens) > 0 and tokens[0][0] == line[0] and tokens[0].endswith(":"): print("ERROR: Invalid task specifier \"%s\"." % tokens[0], file=sys.stderr) sys.exit(1) -- 2.30.2