termux-packages/root-packages/bettercap/fix-paths.patch

27 lines
820 B
Diff
Raw Permalink Normal View History

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/"
+ return "@TERMUX_PREFIX@/share/bettercap/"
2019-10-03 22:15:37 +02:00
}
2019-10-03 22:15:37 +02:00
func getUserHomeDir() string {
diff --git a/modules/ui/ui.go b/modules/ui/ui.go
index 7bc5270..9a5476a 100644
--- a/modules/ui/ui.go
+++ b/modules/ui/ui.go
@@ -34,7 +34,7 @@ func getDefaultInstallBase() string {
if runtime.GOOS == "windows" {
return filepath.Join(os.Getenv("ALLUSERSPROFILE"), "bettercap")
}
- return "/usr/local/share/bettercap/"
+ return "@TERMUX_PREFIX@/share/bettercap/"
}
func NewUIModule(s *session.Session) *UIModule {