summaryrefslogtreecommitdiff
path: root/linux.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-08-31 17:19:53 -0500
committerJeff Carr <[email protected]>2025-08-31 17:19:53 -0500
commitcc5db9ba7ea3d4b636ea2870fe0a3f3decaa9177 (patch)
treec38629d8b3ade311e857dbb1a8b71a5d3f399e74 /linux.go
parentc847491037a9bdb4d315f8ef5a187dfcdcca1d51 (diff)
attempt to fix macos buildv0.0.14
Diffstat (limited to 'linux.go')
-rw-r--r--linux.go34
1 files changed, 0 insertions, 34 deletions
diff --git a/linux.go b/linux.go
deleted file mode 100644
index efdb6e8..0000000
--- a/linux.go
+++ /dev/null
@@ -1,34 +0,0 @@
-package fhelp
-
-// auto run protoc with the correct args
-
-import (
- "bufio"
- "fmt"
- "os"
- "strings"
-
- "go.wit.com/lib/gui/shell"
- "go.wit.com/log"
-)
-
-func linuxInstall(pkg string) {
- cmd := []string{"apt", "install", "-y", pkg}
- if pkg == "protoc" {
- cmd = []string{"apt", "install", "-y", "protobuf-compiler"}
- }
- log.Info("Would you like to run", "sudo", cmd, "now?")
- fmt.Fprintf(os.Stdout, "(y)es or (n)o ? ")
-
- scanner := bufio.NewScanner(os.Stdin)
- for scanner.Scan() {
- line := scanner.Text()
- line = strings.TrimSpace(line)
- line = strings.ToLower(line)
- switch line {
- case "y":
- shell.Sudo(cmd)
- default:
- }
- }
-}