diff options
| author | Jeff Carr <[email protected]> | 2025-10-03 05:07:00 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-03 05:07:00 -0500 |
| commit | 6e30c81f54f145b5b9cd1e428eaa44f8bdc5cd81 (patch) | |
| tree | f76c0b28a0648919f5109fb12ca5f811fb90e224 /doDebian.go | |
| parent | 26686bf8d667f71bb5b493ce4ec84f740fb8d061 (diff) | |
try to force install
Diffstat (limited to 'doDebian.go')
| -rw-r--r-- | doDebian.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/doDebian.go b/doDebian.go index e14e555..63009b3 100644 --- a/doDebian.go +++ b/doDebian.go @@ -4,11 +4,26 @@ package main import ( + "path/filepath" + "go.wit.com/lib/protobuf/gitpb" "go.wit.com/log" ) func doDebian() { + // clean out old deb files + globPattern := filepath.Join(me.homedir, "incoming", "*.deb") + files, err := filepath.Glob(globPattern) + if err != nil { + log.Info("Error during globbing:", err) + badExit(err) + } + if len(files) > 0 { + cmd := []string{"rm"} + cmd = append(cmd, files...) + exitOnErrorRealtime(cmd) + } + initForge() found := gitpb.NewRepos() |
