From 2d6fef23aa126ea7aa5b10b9431e8370a4e16410 Mon Sep 17 00:00:00 2001 From: asrul10 Date: Sun, 9 Apr 2023 10:33:53 +0700 Subject: [PATCH] chore: set default options to (N)o execute --- main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index f086e67..8ed6969 100644 --- a/main.go +++ b/main.go @@ -124,14 +124,14 @@ func main() { return } - c := "Y" + c := "N" elapsed := time.Since(s).Seconds() elapsed = math.Round(elapsed*100) / 100 fmt.Printf("Completed in %v seconds\n\n", elapsed) fmt.Println(r) - fmt.Print("\nAre you sure you want to execute the command? (Y/n): ") + fmt.Print("\nAre you sure you want to execute the command? (y/N): ") fmt.Scanln(&c) - if c != "Y" && c != "y" { + if c == "N" || c == "n" { return }