about summary refs log tree commit diff stats
path: root/hm/soispha/conf/taskwarrior/hooks/scripts
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-10-03 20:21:04 +0200
committerSoispha <soispha@vhack.eu>2023-10-03 20:21:04 +0200
commit603158c6a7ded34e839353299801ccd34a31a2e0 (patch)
tree749a8d437c1884e224b9a19ac34930cf841c68e1 /hm/soispha/conf/taskwarrior/hooks/scripts
parentfeat(hm/conf/taskwarrior/projects): Add support for nested projects (diff)
downloadnixos-config-603158c6a7ded34e839353299801ccd34a31a2e0.zip
fix(hm/conf/taskwarrior/hooks/policies): Also check subprojects
Diffstat (limited to '')
-rwxr-xr-xhm/soispha/conf/taskwarrior/hooks/scripts/on-add_enforce-policies.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/hm/soispha/conf/taskwarrior/hooks/scripts/on-add_enforce-policies.sh b/hm/soispha/conf/taskwarrior/hooks/scripts/on-add_enforce-policies.sh
index 84322e6d..1adc4b33 100755
--- a/hm/soispha/conf/taskwarrior/hooks/scripts/on-add_enforce-policies.sh
+++ b/hm/soispha/conf/taskwarrior/hooks/scripts/on-add_enforce-policies.sh
@@ -22,7 +22,7 @@ enforce_project() {
     project="$(jq '.project' "$(ptmp "$1")")";
     [ "$project" = "null" ] && die "No project supplied!"
 
-    if grep -q "^$(echo "$project" | sed 's|"\([a-z0-9_-]*\).*"|\1|')\$" "$(ptmp "%PROJECTS_NEWLINE")"; then
+    if grep -q "^$(echo "$project" | sed 's|"\(.*\)"|\1|')\$" "$(ptmp "%PROJECTS_NEWLINE")"; then
         dbg "project('$project') is a valid part of %PROJECTS_COMMA";
     else
         die "The project '$(echo "$project" | sed 's|"||g')' is not registered with the nix config, registered projects: %PROJECTS_COMMA";