2021-11-01 10:56:02 +01:00
|
|
|
diff --git a/caplets/env.go b/caplets/env.go
|
|
|
|
index 9ba8706..fd12078 100644
|
|
|
|
--- a/caplets/env.go
|
|
|
|
+++ b/caplets/env.go
|
|
|
|
@@ -19,7 +19,7 @@ func getDefaultInstallBase() string {
|
2019-10-03 22:15:37 +02:00
|
|
|
if runtime.GOOS == "windows" {
|
|
|
|
return filepath.Join(os.Getenv("ALLUSERSPROFILE"), "bettercap")
|
|
|
|
}
|
|
|
|
- return "/usr/local/share/bettercap/"
|
2021-11-01 10:56:02 +01:00
|
|
|
+ return "@TERMUX_PREFIX@/share/bettercap/"
|
2019-10-03 22:15:37 +02:00
|
|
|
}
|
2019-09-12 07:06:16 +02:00
|
|
|
|
2019-10-03 22:15:37 +02:00
|
|
|
func getUserHomeDir() string {
|
2019-09-12 07:06:16 +02:00
|
|
|
diff --git a/modules/ui/ui.go b/modules/ui/ui.go
|
2021-11-01 10:56:02 +01:00
|
|
|
index 7bc5270..9a5476a 100644
|
2019-09-12 07:06:16 +02:00
|
|
|
--- a/modules/ui/ui.go
|
|
|
|
+++ b/modules/ui/ui.go
|
2021-11-01 10:56:02 +01:00
|
|
|
@@ -34,7 +34,7 @@ func getDefaultInstallBase() string {
|
|
|
|
if runtime.GOOS == "windows" {
|
|
|
|
return filepath.Join(os.Getenv("ALLUSERSPROFILE"), "bettercap")
|
2019-09-12 07:06:16 +02:00
|
|
|
}
|
2021-11-01 10:56:02 +01:00
|
|
|
- return "/usr/local/share/bettercap/"
|
|
|
|
+ return "@TERMUX_PREFIX@/share/bettercap/"
|
|
|
|
}
|
2019-09-12 07:06:16 +02:00
|
|
|
|
2021-11-01 10:56:02 +01:00
|
|
|
func NewUIModule(s *session.Session) *UIModule {
|