diff options
| author | Jeff Carr <[email protected]> | 2025-09-09 12:38:30 -0500 | 
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-09-09 12:38:30 -0500 | 
| commit | c8d67da4cc92d707db4d9d78920f40755fadae71 (patch) | |
| tree | 2c03290d9059cf1205c8caff8c7752b0dc1ed351 | |
| parent | 519be646896096f9ac6780e5b6818869d2d24596 (diff) | |
use --max counterv0.0.90
| -rw-r--r-- | argv.go | 2 | ||||
| -rw-r--r-- | doDebian.go | 7 | 
2 files changed, 7 insertions, 2 deletions
@@ -35,7 +35,7 @@ type args struct {  	Force       bool      `arg:"--force"                       help:"rebuild everything"`  	Recursive   bool      `arg:"--recursive"                   help:"go-clone --recursive"`  	WITCOM      bool      `arg:"--witcom"                      help:"add the GPL header"` -	Max         int32     `arg:"--max"       defauult:"40"     help:"stop building after max builds"` +	Max         int32     `arg:"--max"                         help:"stop building after max builds"`  }  type EmptyCmd struct { diff --git a/doDebian.go b/doDebian.go index ffe6f62..f97eaf2 100644 --- a/doDebian.go +++ b/doDebian.go @@ -73,8 +73,13 @@ func buildDeb() {  		counter += 1 +		if int(argv.Max) == 0 { +			argv.Max = 10 +		} +  		if counter > int(argv.Max) { -			okExit("did --max builds") +			log.Info("did --max builds", argv.Max) +			okExit("")  		}  		/*  | 
