fix: silently go away if we face permissions errors
This commit is contained in:
parent
d2a56656b6
commit
192ea75a9d
@ -259,10 +259,10 @@ func distribusify(c *cli.Context, root string, ignore []string) error {
|
||||
if content.Name() == "index.html" {
|
||||
file, err := os.ReadFile(path.Join(absPath, content.Name()))
|
||||
if err != nil {
|
||||
return err
|
||||
return filepath.SkipDir
|
||||
}
|
||||
if strings.Contains(string(file), generatedInDistribusi) {
|
||||
continue
|
||||
return filepath.SkipDir
|
||||
}
|
||||
}
|
||||
files = append(files, path.Join(absPath, content.Name()))
|
||||
|
Loading…
Reference in New Issue
Block a user