diff options
| author | Ophestra Umiker <cat@ophivana.moe> | 2024-09-12 21:07:05 +0900 |
|---|---|---|
| committer | Ophestra Umiker <cat@ophivana.moe> | 2024-09-12 21:07:05 +0900 |
| commit | da6d238d8a15fa583b384b547decbddcda28ff8b (patch) | |
| tree | e0f8b1364fa09e5a5ec7a1d0e86d13c475cde3eb /internal/system | |
| parent | b0aff891661dfa2f438a7264607a4e6e9caef026 (diff) | |
verbose: remove system package interaction
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to 'internal/system')
| -rw-r--r-- | internal/system/retrieve.go | 4 | ||||
| -rw-r--r-- | internal/system/value.go | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/internal/system/retrieve.go b/internal/system/retrieve.go index d9f0e3dd..06798423 100644 --- a/internal/system/retrieve.go +++ b/internal/system/retrieve.go @@ -7,12 +7,12 @@ import ( "strconv" ) -func Retrieve(verbose bool) { +func Retrieve() { if V != nil { panic("system info retrieved twice") } - v := &Values{Share: path.Join(os.TempDir(), "fortify."+strconv.Itoa(os.Geteuid())), Verbose: verbose} + v := &Values{Share: path.Join(os.TempDir(), "fortify."+strconv.Itoa(os.Geteuid()))} if r, ok := os.LookupEnv(xdgRuntimeDir); !ok { fmt.Println("Env variable", xdgRuntimeDir, "unset") diff --git a/internal/system/value.go b/internal/system/value.go index fa5458fc..c34e7fa8 100644 --- a/internal/system/value.go +++ b/internal/system/value.go @@ -8,7 +8,6 @@ type Values struct { Share string Runtime string RunDir string - Verbose bool } var V *Values |
