windowss architecture is shitty
This commit is contained in:
@@ -47,8 +47,17 @@ func main() {
|
||||
Repo: envOrDefault("GITEA_REPO", defaultRepo),
|
||||
}
|
||||
|
||||
if err := platformEnsureElevated(); err != nil {
|
||||
printError(err)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
args := os.Args[1:]
|
||||
|
||||
if len(args) > 0 && args[0] == "--elevated" {
|
||||
args = args[1:]
|
||||
}
|
||||
|
||||
if len(args) == 0 {
|
||||
runTUI(config)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user