From fba99bb2f53c7f754f196b19f16fd284a4ead062 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 25 Jan 2024 11:38:12 -0600 Subject: [PATCH] delete button Signed-off-by: Jeff Carr --- globalResetOptions.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/globalResetOptions.go b/globalResetOptions.go index 5801432..5f67d17 100644 --- a/globalResetOptions.go +++ b/globalResetOptions.go @@ -17,17 +17,17 @@ func globalResetOptions(box *gui.Node) { log.Warn("repo is dirty. commit your changes first", repo.String()) me.deleteGoSrcPkgB.SetLabel("rm ~/go/src (can't. dirty repos)") return - } else { - log.Warn("repo is not dirty", repo.String()) - log.Warn("TODO: check things are pushed and check every dir in go/src/") - me.deleteGoSrcPkgB.SetLabel("ARE YOU SURE?") - if me.deleteGoSrcPkgB.String() == "ARE YOU SURE?" { - fullpath := "/home/jcarr/go/" - quickCmd(fullpath, []string{"rm", "-rf", "/home/jcarr/go/src/"}) - quickCmd(fullpath, []string{"chmod", "700", "-R", "/home/jcarr/go/pkg/"}) - quickCmd(fullpath, []string{"rm", "-rf", "/home/jcarr/go/pkg/"}) - } } } + + log.Warn("no repos have uncommited changes") + log.Warn("TODO: check things are pushed and check every dir in go/src/") + me.deleteGoSrcPkgB.SetLabel("ARE YOU SURE?") + if me.deleteGoSrcPkgB.String() == "ARE YOU SURE?" { + fullpath := "/home/jcarr/go/" + quickCmd(fullpath, []string{"rm", "-rf", "/home/jcarr/go/src/"}) + quickCmd(fullpath, []string{"chmod", "700", "-R", "/home/jcarr/go/pkg/"}) + quickCmd(fullpath, []string{"rm", "-rf", "/home/jcarr/go/pkg/"}) + } }) }