From 051b470b90ee29a92a0e054fe5148f54dd34cb03 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 6 Nov 2024 13:46:15 -0600 Subject: allow passing of -ldflags Signed-off-by: Jeff Carr --- main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 4259608..4c239c0 100644 --- a/main.go +++ b/main.go @@ -21,7 +21,7 @@ var cBox *controlBox var basicWindow *gadgets.BasicWindow func main() { - if args.Repo == "" { + if argv.Repo == "" { log.Info("You need to tell me what repo you want to work on") println("") println("go-deb --repo go.wit.com/apps/helloworld") @@ -32,11 +32,11 @@ func main() { basicWindow = makebasicWindow() - filepath := filepath.Join("/home/jcarr/go/src", args.Repo) + filepath := filepath.Join("/home/jcarr/go/src", argv.Repo) os.Chdir(filepath) // scan the repo - cBox.addRepo(args.Repo) + cBox.addRepo(argv.Repo) // look for a 'config' file in the repo if cBox.readControlFile() == nil { @@ -47,7 +47,7 @@ func main() { cBox.computeControlValues() // verify the values for the package - if args.NoGui { + if argv.NoGui { shell.TestTerminalColor() if ok, err := cBox.buildPackage(); ok { log.Info("build worked") -- cgit v1.2.3