summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-08 16:18:30 -0500
committerJeff Carr <[email protected]>2025-09-08 16:18:30 -0500
commitaf5205fb365f06727ab8ae051bd28e79f47b346c (patch)
tree5d8978f18b0dec5dbeef32245d6384bc71e8316d /main.go
parent6f8349ce5b336652a38d9e7ca34fc8d48108a584 (diff)
add bash supportv0.22.126
Diffstat (limited to 'main.go')
-rw-r--r--main.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/main.go b/main.go
index 8745d13..ab09067 100644
--- a/main.go
+++ b/main.go
@@ -20,6 +20,7 @@ var DATE string
//go:embed resources/*
var resources embed.FS
+var ARGNAME string = "go-deb"
var argv args
func main() {
@@ -28,6 +29,15 @@ func main() {
gui.InitArg()
arg.MustParse(&argv)
+ if argv.Bash {
+ fhelp.DoBash(ARGNAME)
+ os.Exit(0)
+ }
+ if len(argv.BashAuto) != 0 {
+ argv.doBashAuto()
+ os.Exit(0)
+ }
+
if err := fhelp.ConfigureENV(); err != nil {
badExit(err)
}