aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2018-06-03 05:36:32 +0700
committerShulhan <ms@kilabit.info>2018-06-03 23:51:33 +0700
commitb281934d6296abbecfc36f42de8d8dfd15c6ee44 (patch)
tree2a7cfaacd22bdd5feba9b3058f3120e6ea7a7b44
parent4204356728bb33f6aa69bdd9b341be221874dd6a (diff)
downloadbeku-b281934d6296abbecfc36f42de8d8dfd15c6ee44.tar.xz
env.install(): change confirmation message for cleaning non-empty directory
-rw-r--r--beku.go3
-rw-r--r--env.go2
2 files changed, 3 insertions, 2 deletions
diff --git a/beku.go b/beku.go
index ea3f929..2cb6514 100644
--- a/beku.go
+++ b/beku.go
@@ -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'
diff --git a/env.go b/env.go
index bdd57f1..727ebb0 100644
--- a/env.go
+++ b/env.go
@@ -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
}