mirror of
https://github.com/Hopiu/micro.git
synced 2026-05-09 15:24:42 +00:00
parent
2bf40f096e
commit
fa84f6ddc3
1 changed files with 2 additions and 2 deletions
|
|
@ -8,7 +8,6 @@ import (
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
"path"
|
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
@ -423,6 +422,7 @@ func (pv *PluginVersion) DownloadAndInstall() error {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Install files and directory's
|
||||||
for _, f := range z.File {
|
for _, f := range z.File {
|
||||||
parts := strings.Split(f.Name, "/")
|
parts := strings.Split(f.Name, "/")
|
||||||
if allPrefixed {
|
if allPrefixed {
|
||||||
|
|
@ -435,7 +435,7 @@ func (pv *PluginVersion) DownloadAndInstall() error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
basepath := path.Dir(targetName)
|
basepath := filepath.Dir(targetName)
|
||||||
|
|
||||||
if err := os.MkdirAll(basepath, dirPerm); err != nil {
|
if err := os.MkdirAll(basepath, dirPerm); err != nil {
|
||||||
return err
|
return err
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue