commit 7d2fde5e4eb2c549a8a35d68abbb7c990dbe0701
parent 2457c057fb353c139d838986802232bb7fd2e901
Author: finwo <finwo@pm.me>
Date: Sat, 14 Mar 2026 18:08:00 +0100
Fix dirname replacement with original intent
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/command/install/main.c b/src/command/install/main.c
@@ -399,10 +399,10 @@ static int install_dependency(const char *name, const char *spec) {
strcpy(dst, lib_path);
dst += strlen(lib_path);
src += 9;
- } else if (strncmp(src, "{__DIRNAME__}", 13) == 0) {
+ } else if (strncmp(src, "{{module.dirname}}", 18) == 0) {
strcpy(dst, lib_path);
dst += strlen(lib_path);
- src += 13;
+ src += 18;
} else {
*dst++ = *src++;
}