[fix] misspelling
This commit is contained in:
parent
990b47f770
commit
e60657c953
1 changed files with 2 additions and 6 deletions
|
|
@ -131,7 +131,7 @@ func urlExists(url string) bool {
|
||||||
func (pkg *Package) Download() error {
|
func (pkg *Package) Download() error {
|
||||||
|
|
||||||
if pkg.Remote == "" {
|
if pkg.Remote == "" {
|
||||||
return fmt.Errorf("remote url is requried")
|
return fmt.Errorf("remote url is required")
|
||||||
}
|
}
|
||||||
|
|
||||||
root, err := os.MkdirTemp("", "*-yao-zip")
|
root, err := os.MkdirTemp("", "*-yao-zip")
|
||||||
|
|
@ -231,11 +231,7 @@ func (pkg *Package) Unpack(dest string) (*app.DSL, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Remove env
|
// Remove env
|
||||||
err = fs.Remove(filepath.Join(dest, ".env"))
|
fs.Remove(filepath.Join(dest, ".env"))
|
||||||
if err != nil {
|
|
||||||
return nil, err
|
|
||||||
}
|
|
||||||
|
|
||||||
return &setting, nil
|
return &setting, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue