x
This commit is contained in:
+12
-10
@@ -113,16 +113,18 @@ func initPlugins() {
|
|||||||
defer pluginLock.Unlock()
|
defer pluginLock.Unlock()
|
||||||
// fmt.Println("new", new, key)
|
// fmt.Println("new", new, key)
|
||||||
|
|
||||||
if vv, ok := plugins_id.Load(key); ok {
|
if new != "install" {
|
||||||
filename := vv.(string)
|
if vv, ok := plugins_id.Load(key); ok {
|
||||||
if new == "" {
|
filename := vv.(string)
|
||||||
os.RemoveAll(filepath.Dir(filename))
|
if new == "" {
|
||||||
} else if new != "install" {
|
os.RemoveAll(filepath.Dir(filename))
|
||||||
fmt.Println("WriteFile", []byte(new))
|
} else {
|
||||||
os.WriteFile(filename, []byte(new), 0755)
|
fmt.Println("WriteFile", []byte(new))
|
||||||
}
|
os.WriteFile(filename, []byte(new), 0755)
|
||||||
return &storage.Final{
|
}
|
||||||
Now: "",
|
return &storage.Final{
|
||||||
|
Now: "",
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user