diff options
| author | Jeff Carr <[email protected]> | 2025-10-21 06:41:56 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-10-21 06:41:56 -0500 |
| commit | ec97c667b3e61184e3285069574b7467b6c001d1 (patch) | |
| tree | 88c9bb270e154ca1eae69d43e7641cebab62ffb3 | |
| parent | 1d3d51cfaf7b09572ba3242b3a8a2a9fcc0e894e (diff) | |
use lib ENV
| -rw-r--r-- | compare.go | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -3,6 +3,7 @@ package gitpb import ( "strings" + "go.wit.com/lib/ENV" "go.wit.com/lib/config" "go.wit.com/log" ) @@ -162,7 +163,7 @@ func (repo *Repo) SafeDelete(deleteHash string, keepHash string) error { log.Printf("%-13.13s %-55.55s %v %s\n", "CMD OK", repo.FullPath, cmd1, "") log.Printf("%-13.13s %-55.55s %v %s\n", "CMD OK", repo.FullPath, cmd2, "") log.Printf("%-13.13s %-55.55s %v %s\n", "SAFE TO DELETE", repo.FullPath, cmd, "add --fix") - if config.Get("Fix") == "true" { + if ENV.Get("Fix") == "true" { err := repo.RunVerbose(cmd) if err != nil { log.Info(deleteHash, repo.FullPath) |
