Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6e20f9c

Browse files
authored
fix: Recursively ignore hidden folders (#3997)
Fixes #3938.
1 parent 9e148a5 commit 6e20f9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

provisionersdk/archive.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func Tar(directory string, limit int64) ([]byte, error) {
7575
if err != nil {
7676
return err
7777
}
78-
if strings.HasPrefix(rel, ".") {
78+
if strings.HasPrefix(filepath.Base(rel), ".") {
7979
// Don't archive hidden files!
8080
return err
8181
}

0 commit comments

Comments
 (0)