Skip to content

Commit

Permalink
prevent copying symlinks from pkg/ and raw/
Browse files Browse the repository at this point in the history
  • Loading branch information
jschlatow committed Sep 12, 2024
1 parent 94a73be commit 9966cdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions share/goa/lib/actions/depot.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ namespace eval goa {
if {[file exists $raw_dir] && [file isdirectory $raw_dir]} {
set dst_dir [prepare_project_archive_directory raw]
if {$dst_dir != ""} {
set files [exec find $raw_dir -not -type d -and -not -name "*~"]
set files [exec find $raw_dir -not -type d -and -not -name "*~" -and -not -type l]
foreach file $files {
file copy $file [file join $dst_dir [file tail $file]] }

Expand Down Expand Up @@ -471,7 +471,7 @@ namespace eval goa {
set dst_dir [prepare_project_archive_directory pkg $pkg]
if {$dst_dir != ""} {
# copy content from pkg directory as is
set files [exec find $pkg_dir -not -type d -and -not -name "*~"]
set files [exec find $pkg_dir -not -type d -and -not -name "*~" -and -not -type l]
foreach file $files {
file copy $file [file join $dst_dir [file tail $file]] }

Expand Down

0 comments on commit 9966cdb

Please sign in to comment.