diff options
| author | Shulhan <ms@kilabit.info> | 2018-06-03 05:36:32 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2018-06-03 23:51:33 +0700 |
| commit | b281934d6296abbecfc36f42de8d8dfd15c6ee44 (patch) | |
| tree | 2a7cfaacd22bdd5feba9b3058f3120e6ea7a7b44 | |
| parent | 4204356728bb33f6aa69bdd9b341be221874dd6a (diff) | |
| download | beku-b281934d6296abbecfc36f42de8d8dfd15c6ee44.tar.xz | |
env.install(): change confirmation message for cleaning non-empty directory
| -rw-r--r-- | beku.go | 3 | ||||
| -rw-r--r-- | env.go | 2 |
2 files changed, 3 insertions, 2 deletions
@@ -29,9 +29,10 @@ const ( envDEBUG = "BEKU_DEBUG" envPATH = "PATH" + msgCleanDir = "Clean destination directory?" + msgContinue = "Continue?" msgUpdateProceed = "Proceed with update?" msgUpdateView = "View commit logs?" - msgContinue = "Continue?" prefixTag = 'v' @@ -960,7 +960,7 @@ func (env *Env) install(pkg *Package) (ok bool, err error) { if !IsDirEmpty(pkg.FullPath) { fmt.Printf(">>> Directory %s is not empty.\n", pkg.FullPath) if !env.NoConfirm { - ok = confirm(os.Stdin, msgContinue, false) + ok = confirm(os.Stdin, msgCleanDir, false) if !ok { return } |
