mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 13:09:49 -07:00
fix: updated islazy to 1.9.1 (fixes #360)
This commit is contained in:
parent
f6c2e15836
commit
26e2cd8831
4 changed files with 7 additions and 5 deletions
6
Gopkg.lock
generated
6
Gopkg.lock
generated
|
@ -59,7 +59,7 @@
|
||||||
revision = "f58a169a71a51037728990b2d3597a14f56b525b"
|
revision = "f58a169a71a51037728990b2d3597a14f56b525b"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
digest = "1:b44604e0c8da17e780203bfd9388d65db31d4ee039347ea92788412e7737a08c"
|
digest = "1:495dc25bbfe6025e945e3efe885801fc1aefc33d835cac453c0e36a35693d839"
|
||||||
name = "github.com/evilsocket/islazy"
|
name = "github.com/evilsocket/islazy"
|
||||||
packages = [
|
packages = [
|
||||||
"data",
|
"data",
|
||||||
|
@ -71,8 +71,8 @@
|
||||||
"zip",
|
"zip",
|
||||||
]
|
]
|
||||||
pruneopts = "UT"
|
pruneopts = "UT"
|
||||||
revision = "be7e564817af1379a350998577006745039f599f"
|
revision = "3d8400c74f9dbc626d913e0575cda05d914bea57"
|
||||||
version = "v1.9.0"
|
version = "v1.9.1"
|
||||||
|
|
||||||
[[projects]]
|
[[projects]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
# unused-packages = true
|
# unused-packages = true
|
||||||
[[constraint]]
|
[[constraint]]
|
||||||
name = "github.com/evilsocket/islazy"
|
name = "github.com/evilsocket/islazy"
|
||||||
version = "1.9.0"
|
version = "1.9.1"
|
||||||
|
|
||||||
[[constraint]]
|
[[constraint]]
|
||||||
branch = "master"
|
branch = "master"
|
||||||
|
|
|
@ -109,7 +109,6 @@ func (m SessionModule) IntParam(name string) (error, int) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func (m SessionModule) DecParam(name string) (error, float64) {
|
func (m SessionModule) DecParam(name string) (error, float64) {
|
||||||
if p, found := m.params[name]; found {
|
if p, found := m.params[name]; found {
|
||||||
if err, v := p.Get(m.Session); err != nil {
|
if err, v := p.Get(m.Session); err != nil {
|
||||||
|
|
3
vendor/github.com/evilsocket/islazy/fs/misc.go
generated
vendored
3
vendor/github.com/evilsocket/islazy/fs/misc.go
generated
vendored
|
@ -14,6 +14,9 @@ var (
|
||||||
|
|
||||||
// Expand will expand a path with ~ to a full path of the current user.
|
// Expand will expand a path with ~ to a full path of the current user.
|
||||||
func Expand(path string) (string, error) {
|
func Expand(path string) (string, error) {
|
||||||
|
if path == "" {
|
||||||
|
return path, nil
|
||||||
|
}
|
||||||
usr, err := user.Current()
|
usr, err := user.Current()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue