summaryrefslogtreecommitdiff
path: root/doDebian.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-09 08:41:15 -0500
committerJeff Carr <[email protected]>2025-09-09 08:41:15 -0500
commite629211edd82f3910cff3c3db2c272a48c01fa56 (patch)
tree37c746d27405b8ffb7adb521f7bfd1cd5ca3d731 /doDebian.go
parent49820069c91df673727bc35d1ee0da395c278d4c (diff)
make args work again
Diffstat (limited to 'doDebian.go')
-rw-r--r--doDebian.go16
1 files changed, 13 insertions, 3 deletions
diff --git a/doDebian.go b/doDebian.go
index 219a80b..4ff6e53 100644
--- a/doDebian.go
+++ b/doDebian.go
@@ -15,11 +15,15 @@ func buildDeb() {
log.DaemonMode(true)
defer log.DaemonMode(false)
- if err := doInstall(); err != nil {
- log.Info("doInstall() failed", err)
- badExit(err)
+ if argv.Test != nil {
+ if err := doInstall(); err != nil {
+ log.Info("doInstall() failed", err)
+ badExit(err)
+ }
}
+ var counter int
+
all := me.forge.Repos.SortByFullPath()
for all.Scan() {
var cmd []string
@@ -67,6 +71,12 @@ func buildDeb() {
}
}
+ counter += 1
+
+ if counter > int(argv.Max) {
+ okExit("did --max builds")
+ }
+
/*
build-darwin:
GOOS=darwin GOARCH=amd64 GO111MODULE=off go build -v -o go-clone-darwin.x86 \