From df0979a9468e56a930d0fe64c41066bd21dc3b04 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 17 Oct 2025 05:32:38 -0500 Subject: lame panic --- doNormal.go | 4 ++++ doPatch.go | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/doNormal.go b/doNormal.go index ff47a79..537b751 100644 --- a/doNormal.go +++ b/doNormal.go @@ -60,6 +60,10 @@ func doNormalAll() (string, error) { return s, err } +func (a *args) DoNormal() (string, error) { + return doNormalAttempt() +} + // try to switch to "Normal" mode func doNormalAttempt() (string, error) { start := time.Now() diff --git a/doPatch.go b/doPatch.go index e0f697e..fe32dfb 100644 --- a/doPatch.go +++ b/doPatch.go @@ -165,6 +165,11 @@ func doPatchProcess() (string, error) { } continue } + if argv.Patch == nil { + needfix += 1 + continue + } + // if !me.argv.If("--apply") { if !argv.Patch.Apply { // --apply isn't set. don't go any further needfix += 1 -- cgit v1.2.3