From fa015c909c76dc57936be80d28fc112a4db9aa37 Mon Sep 17 00:00:00 2001 From: Dave L Date: Fri, 16 Jan 2026 11:58:22 -0800 Subject: [PATCH] Fix path formatting in tokenReplace commands On windows, `variables.cwd` has the full path and doesn't need a leading "/". Prepending the "/" will cause the `command()` to not work and will silently fail to replace the tokens. Todo: I think the `SetupTemplate.cfc` should be ignored from the token replace command. However, I'm not sure if this is possible. --- build/SetupTemplate.cfc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build/SetupTemplate.cfc b/build/SetupTemplate.cfc index ca18f24..962548a 100644 --- a/build/SetupTemplate.cfc +++ b/build/SetupTemplate.cfc @@ -38,7 +38,7 @@ component { command( "tokenReplace" ) .params( - path = "/#variables.cwd#/**", + path = "#variables.cwd#/**", token = "@MODULE_NAME@", replacement = moduleName ) @@ -46,7 +46,7 @@ component { command( "tokenReplace" ) .params( - path = "/#variables.cwd#/**", + path = "#variables.cwd#/**", token = "@MODULE_SLUG@", replacement = moduleSlug ) @@ -54,7 +54,7 @@ component { command( "tokenReplace" ) .params( - path = "/#variables.cwd#/**", + path = "#variables.cwd#/**", token = "@MODULE_DESCRIPTION@", replacement = moduleDescription )