mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
Added caplets windows compatibility
This commit is contained in:
parent
11d2756283
commit
c46bb905b9
3 changed files with 25 additions and 5 deletions
|
@ -120,7 +120,7 @@ func (mod *CapletsModule) Update() error {
|
|||
}
|
||||
}
|
||||
|
||||
out, err := os.Create("/tmp/caplets.zip")
|
||||
out, err := os.Create(caplets.ArchivePath)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
@ -140,7 +140,7 @@ func (mod *CapletsModule) Update() error {
|
|||
|
||||
mod.Info("installing caplets to %s ...", caplets.InstallPath)
|
||||
|
||||
if _, err = zip.Unzip("/tmp/caplets.zip", caplets.InstallBase); err != nil {
|
||||
if _, err = zip.Unzip(caplets.ArchivePath, caplets.InstallBase); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue