fix: ensure all copied files always have line endings converted to unix-style

Closes #6490
This commit is contained in:
Jose Diaz-Gonzalez
2024-01-24 22:43:43 -05:00
parent ea95d71e56
commit b6425ab431
10 changed files with 56 additions and 70 deletions

View File

@@ -4,8 +4,6 @@ import (
"fmt"
"os"
"path/filepath"
"github.com/otiai10/copy"
)
// CreateAppDataDirectory creates a data directory for the given plugin/app combination with the correct permissions
@@ -68,7 +66,7 @@ func CloneAppData(pluginName string, oldAppName string, newAppName string) error
}
newDataDir := GetAppDataDirectory(pluginName, newAppName)
if err := copy.Copy(oldDataDir, newDataDir); err != nil {
if err := Copy(oldDataDir, newDataDir); err != nil {
return fmt.Errorf("Unable to clone app data to new location: %v", err.Error())
}