From 65f3f88f533112c9f5aba574fbbe1f9dbe85dd68 Mon Sep 17 00:00:00 2001 From: Kirk Rodrigues <2454684+kirkrodrigues@users.noreply.github.com> Date: Wed, 6 Nov 2024 14:19:13 -0500 Subject: [PATCH] fix(taskfiles): Use empty list as default for optional variable when passing it to a task via a ref (fixes 14). --- taskfiles/utils.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/taskfiles/utils.yml b/taskfiles/utils.yml index 5b24747..13bdded 100644 --- a/taskfiles/utils.yml +++ b/taskfiles/utils.yml @@ -50,7 +50,7 @@ tasks: vars: DATA_DIR: "{{.DATA_DIR}}" EXCLUDE_PATHS: - ref: ".EXCLUDE_PATHS" + ref: "default (list) .EXCLUDE_PATHS" OUTPUT_FILE: "{{.TMP_CHECKSUM_FILE}}" - defer: "rm -f '{{.TMP_CHECKSUM_FILE}}'" # Check that the directory exists and the checksum matches; otherwise delete the checksum file