Browse Source

fix punk::mix / make.tcl so it doesn't attempt to navigate . and .. folders on unix-like platforms when copying files

master
Julian Noble 1 year ago
parent
commit
05ba837670
  1. 3
      src/modules/punk/mix-0.2.tm

3
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 subdirs [glob -nocomplain -dir $srcdir -type d -tail *]
set hiddensubdirs [glob -nocomplain -dir $srcdir -type {hidden d} -tail *] set hiddensubdirs [glob -nocomplain -dir $srcdir -type {hidden d} -tail *]
foreach h $hiddensubdirs { foreach h $hiddensubdirs {
if {$h in [list "." ".."]} {
continue
}
if {$h ni $subdirs} { if {$h ni $subdirs} {
lappend subdirs $h lappend subdirs $h
} }

Loading…
Cancel
Save