mirror of
https://github.com/knadh/listmonk.git
synced 2025-10-10 23:40:55 +08:00
Clarify default option in prompt
Pressing enter without specifying a letter in the continue prompt cancells installation. So, the script should show as such.
This commit is contained in:
parent
1f4f4263a3
commit
f0299a87eb
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ func install(lastVer string, db *sqlx.DB, fs stuffbin.FileSystem, prompt, idempo
|
||||||
|
|
||||||
if prompt {
|
if prompt {
|
||||||
var ok string
|
var ok string
|
||||||
fmt.Print("continue (y/n)? ")
|
fmt.Print("continue (y/N)? ")
|
||||||
if _, err := fmt.Scanf("%s", &ok); err != nil {
|
if _, err := fmt.Scanf("%s", &ok); err != nil {
|
||||||
lo.Fatalf("error reading value from terminal: %v", err)
|
lo.Fatalf("error reading value from terminal: %v", err)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue