From befe2bd0dd3ab210282ada9235449627eb113719 Mon Sep 17 00:00:00 2001 From: Julian Noble Date: Thu, 17 Aug 2023 07:59:41 +1000 Subject: [PATCH] fix pmix new project command --- src/modules/punk/mix-0.2.tm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/punk/mix-0.2.tm b/src/modules/punk/mix-0.2.tm index fdf859d9..e75ac53b 100644 --- a/src/modules/punk/mix-0.2.tm +++ b/src/modules/punk/mix-0.2.tm @@ -423,8 +423,8 @@ namespace eval punk::mix::cli { set testdir [pwd] - if {![string length [set projectdir [punk::repo::find_project_root $testdir]]]} { - if {![string length [set projectdir [punk::repo::find_candidate_root $testdir]]]} { + if {![string length [set projectdir [punk::repo::find_project $testdir]]]} { + if {![string length [set projectdir [punk::repo::find_candidate $testdir]]]} { error "newmodule unable to create module in projectdir:$projectdir - directory doesn't appear to meet basic standards (/src, src/modules, src/lib & /modules must exist, must not be a system path such as /usr/bin or c:/windows)" } }