From ec97c667b3e61184e3285069574b7467b6c001d1 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 21 Oct 2025 06:41:56 -0500 Subject: use lib ENV --- compare.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compare.go b/compare.go index ddc639d..28fb9d1 100644 --- a/compare.go +++ b/compare.go @@ -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) -- cgit v1.2.3