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:
Tushar Sadhwani 2021-09-12 23:47:06 +05:30 committed by GitHub
parent 1f4f4263a3
commit f0299a87eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,7 +32,7 @@ func install(lastVer string, db *sqlx.DB, fs stuffbin.FileSystem, prompt, idempo
if prompt {
var ok string
fmt.Print("continue (y/n)? ")
fmt.Print("continue (y/N)? ")
if _, err := fmt.Scanf("%s", &ok); err != nil {
lo.Fatalf("error reading value from terminal: %v", err)
}