From 05ba8376700f791f4397d7d5fa76598bfdf44ead Mon Sep 17 00:00:00 2001 From: Julian Noble Date: Mon, 7 Aug 2023 00:59:18 +1000 Subject: [PATCH] fix punk::mix / make.tcl so it doesn't attempt to navigate . and .. folders on unix-like platforms when copying files --- src/modules/punk/mix-0.2.tm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/punk/mix-0.2.tm b/src/modules/punk/mix-0.2.tm index 5246dbf4..3ebb0b99 100644 --- a/src/modules/punk/mix-0.2.tm +++ b/src/modules/punk/mix-0.2.tm @@ -596,6 +596,9 @@ namespace eval punk::mix::cli { set subdirs [glob -nocomplain -dir $srcdir -type d -tail *] set hiddensubdirs [glob -nocomplain -dir $srcdir -type {hidden d} -tail *] foreach h $hiddensubdirs { + if {$h in [list "." ".."]} { + continue + } if {$h ni $subdirs} { lappend subdirs $h }