mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-16 22:07:09 +09:00
fixed build
This commit is contained in:
@@ -144,12 +144,12 @@ func PluginListRuntimeFiles(fileType string) []string {
|
||||
}
|
||||
|
||||
// PluginAddRuntimeFile adds a file to the runtime files for a plugin
|
||||
func PluginAddRuntimeFile(plugin, filetype, path string) {
|
||||
fullpath := filepath.Join(configDir, "plugins", plugin, path)
|
||||
func PluginAddRuntimeFile(plugin, filetype, filePath string) {
|
||||
fullpath := filepath.Join(configDir, "plugins", plugin, filePath)
|
||||
if _, err := os.Stat(fullpath); err == nil {
|
||||
AddRuntimeFile(filetype, realFile(fullpath))
|
||||
} else {
|
||||
fullpath = path.Join("runtime", "plugins", plugin, path)
|
||||
fullpath = path.Join("runtime", "plugins", plugin, filePath)
|
||||
AddRuntimeFile(filetype, assetFile(fullpath))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user