Fix: don't need sudo if we're root + other aesthetics
This commit is contained in:
parent
4d0086df41
commit
ab104bb7bc
7 changed files with 125 additions and 80 deletions
|
@ -14,8 +14,8 @@ import (
|
|||
// This is where we build everything
|
||||
func Tui() {
|
||||
// Log all errors to a new logfile (super useful feature of BubbleTea!)
|
||||
os.Remove("debug.log")
|
||||
logfile, err := tea.LogToFile("debug.log", "")
|
||||
_ = os.Rename("quickpassthrough_debug.log", "quickpassthrough_debug_old.log")
|
||||
logfile, err := tea.LogToFile("quickpassthrough_debug.log", "")
|
||||
errorcheck.ErrorCheck(err, "Error creating log file")
|
||||
defer logfile.Close()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue