x
This commit is contained in:
+3
-1
@@ -113,11 +113,12 @@ func initPlugins() {
|
||||
defer pluginLock.Unlock()
|
||||
// fmt.Println("new", new, key)
|
||||
|
||||
if new != "install" {
|
||||
if vv, ok := plugins_id.Load(key); ok {
|
||||
filename := vv.(string)
|
||||
if new == "" {
|
||||
os.RemoveAll(filepath.Dir(filename))
|
||||
} else if new != "install" {
|
||||
} else {
|
||||
fmt.Println("WriteFile", []byte(new))
|
||||
os.WriteFile(filename, []byte(new), 0755)
|
||||
}
|
||||
@@ -125,6 +126,7 @@ func initPlugins() {
|
||||
Now: "",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if new == "install" {
|
||||
for _, p := range plugin_list {
|
||||
|
||||
Reference in New Issue
Block a user